Laius and Jocasta, the rulers of Thebes hear a prophecy that their son will be cursed to kill his father and marry his mother. They tie his feet together and leave him in the woods to die. He is found and raised by Polybus and Merope in Corinth.
Upon the murderer I invoke this curse ... may he wear out his life in misery to miserable doom!
Oedipus suspects that Polybus and Merope are not his real parents, so he visits an oracle who tells him of the same prophecy his parents heard. To avoid his fate he leaves Corinth, but on his way he gets into a fight with a man, who he kills.
You are the murderer of the king whose murderer you seek.
Not twice you shall say calumnies like this and stay unpunished.
Oedipus arrives in Thebes, where he defeats the Sphinx, who is plaguing the city, by answering her riddle. After this, he becomes the king, and marries the queen, Jocasta.
Oedipus's brother-in-law Creon goes to an oracle who says that must rid the pollution from their land by avenging a death. Oedipus curses those who killed Laius to banishment.
Teiresias tells Oedipus that the killer of Laius was Oedipus himself. Oedipus doesn't believe it at first, but information from Jocasta and a messenger from Corinth confirm his fears.
Jocasta takes her own life after realizing that the prophecy has come true. Oedipus gouges his own eyes. He asks Creon to banish him, to give Jocasta a proper burial, and to watch over his daughters.