King Laios and Queen Jocasta of Thebes learned from an oracle that their newborn son would kill his father and marry his mother so they gave the baby to an shepherswith orders to leave the infant to die on a lonely mountainside with his ankles pinned together.
Shepherd, instead of abandoning him, he gave gave the baby to a Corinthian shepherd, who in turn gave the baby to the childless king and queen of Corinth.
This is a Plague in our town
Oedipus immediately guessed that the answer to the riddle was "man," who crawls on all four as an infant, walks on two legs as an adult, and leans on a cane in old age . Upon hearing Oedipus's answer, the defeated Sphinx leaped off a high rock. Thebes was saved.
Since Laios, their king, had recently been killed, the Thebes offered Oedipus their throne and the widowed queen, Jocasta, as his bride. So Oedipus became king of Thebes , married Jocasta and had four children with her: two sons and two daughters.
All went well for many years until a plague struck Thebes. People,crops, and animals were dying. Desperate to learn the cause, Oedipus sent Jocasta's brother, Creon, to consult the great oracle at Delphi.
It was Eteocles turn to be king but when it was time to let Polyneices be king he refused. They started a war against each other and killed each other.