The Greek tragedy "Oedipus the King" was written by Sophocles, one of the most famous playwrights of ancient Athens. As with most Greek tragedies, the story of Oedipus is based upon pre-existing myths, the origin of which are lost in time.
Sophocles lived during the fifth century B.C. during what is often referred to as the Golden Age of ancient Athens. It was a time a great achievements in art, science, philosophy and theater. Sophocles is one of only three ancient Greek tragedians whose work has survived, the others being Aeschylus and Euripides. While Sophocles may have written as many as 123 tragedies, only seven have survived intact, including "Antigone" and "Oedipus at Colonus," both of which continue the story of Oedipus and his family.