Sophocles (c. 497/6 – winter 406/5 BC) is one of three ancient Greek tragedians whose plays have survived. 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 thirty competitions, won twenty-four, and was never judged lower than second place. Aeschylus won thirteen competitions, and was sometimes defeated by Sophocles; Euripides won four.