Sophocles (; , , Sophoklễs; 497/496 – winter 406/405 BC) was an ancient Greek tragedian, one of three from whom at least two plays have survived in full. His first plays were written later than, or contemporary with, those of Aeschylus and earlier than, or contemporary with, those of Euripides. Sophocles wrote more than 120 plays, but only seven have survived in a complete form: Ajax, Antigone, Women of Trachis, Oedipus Rex, Electra, Philoctetes, and Oedipus at Colonus. For almost 50 years, Sophocles was the most celebrated playwright in the dramatic competitions of the city-state of Athens, which took place during the religious festivals of the Lenaea and the Dionysia. He competed in 30 competitions, won 24, and was never judged lower than second place. Aeschylus won 13 competitions and was sometimes beaten by Sophocles; Euripides won four.

The most famous tragedies of Sophocles feature Oedipus and Antigone: they are generally known as the Theban plays, though each was part of a different tetralogy (the other members of which are now lost). Sophocles influenced the development of drama, most importantly by adding a third actor (attributed to Sophocles by Aristotle; to Aeschylus by Themistius), thereby reducing the importance of the chorus in the presentation of the plot. He also developed his characters to a greater extent than earlier playwrights.

Life

thumb|right|A marble relief of a poet, perhaps Sophocles

Sophocles, the son of Sophillus, was a wealthy member of the rural deme (small community) of Hippeius Colonus in Attica, which was to become a setting for his play Oedipus at Colonus. He was also probably born there, a few years before the Battle of Marathon in 490 BC: the exact year is unclear, but 497/6 is most likely. He was born into a wealthy family (his father was an armour manufacturer) and was highly educated. His first artistic triumph was in 468 BC, when he took first prize in the Dionysia, beating the reigning master of Athenian drama, Aeschylus. According to Plutarch, the victory came under unusual circumstances: instead of following the usual custom of choosing judges by lot, the archon asked Cimon, and the other strategoi present, to decide the victor of the contest. Plutarch further contends that, following this loss, Aeschylus soon left for Sicily. Though Plutarch says that this was Sophocles's first production, it is now thought that his first production was probably in 470 BC. Early in his career, the politician Cimon might have been one of his patrons, but if he was, there was no ill will borne by Pericles, Cimon's rival, when Cimon was ostracized in 461 BC. but the classicist Hugh Lloyd-Jones calls this "most improbable".

In 420 BC, he was chosen to receive the image of Asclepius in his own house when the cult was being introduced to Athens and lacked a proper place (τέμενος). For this, the Athenians gave him the posthumous epithet Dexion (receiver). But "some doubt attaches to this story".

Sophocles died at the age of 90 or 91 in the winter of 406/5 BC, having seen, within his lifetime, both the Greek triumph in the Persian Wars and the bloodletting of the Peloponnesian War. A few months later, a comic poet, in a play titled The Muses, wrote this eulogy: "Blessed is Sophocles, who had a long life, was a man both happy and talented, and the writer of many good tragedies; and he ended his life well without suffering any misfortune." According to some accounts, however, his own sons tried to have him declared incompetent near the end of his life, and he refuted their charge in court by reading from his new Oedipus at Colonus. One of his sons, Iophon, and a grandson, also named Sophocles (son of Ariston), also became playwrights.

thumb|Sophocles, ancient Roman mosaic

An ancient source, Athenaeus's work Sophists at Dinner, contains references to Sophocles's sexuality. In that work, a character named Myrtilus claims that Sophocles "was partial to boys, in the same way that Euripides was partial to women" ("φιλομεῖραξ δὲ ἦν ὁ Σοφοκλῆς, ὡς Εὐριπίδης φιλογύνης"), and relates an anecdote, attributed to Ion of Chios, of Sophocles flirting with a serving-boy at a symposium: