Laius and Jocasta go to the Oracle of Delphi to receive their sons' prophecy.
Your son will murder his father, and sleep with his mother.
Despite hearing this, Laius and Jocasta proceed to have a child.
Out of fear, Laius pierces the child's ankles and abandons him on a cliff. Soon after, a herdsman finds the child. Knowing he could not care for the child, he leaves the child alone. Eventually, another herdsman would come along and decide to take the child to Corinth, and give him to Polybus and Merope, the ruling king and queen, and named the child Oedipus as well.
Years later,during a party hosted for the Corinthian nobility, a drunken noble told Oedipus that Polybus and Merope were not his real parents. After the party, Oedipus confronted his parents about this. When they revealed this news to be true, Oedipus set out for the Oracle of Delphi to discover who his true parents were.
Once he had heard the Oracle speak, and had received no clear answer, Oedipus ventured off, eventually making his way towards Thebes, whose entrance was being guarded by the riddling Sphinx. Oedipus came upon Laius, who had set off for the Oracle to see if she could tell him how to remove the Sphinx. His hubris getting the better of him, Oedipus refused to make way for Laius, who struck him. Out of rage, Oedipus killed Laius, unwittingly fulfilling the first half of the prophecy.
Many years later, after he had succeeded in getting rid of the Sphinx, married and had several children with Jocasta, Oedipus was told that Jocasta was his mother, and that he had unknowingly killed his father. Oedipus summoned the herdsman who had found him, and the herdsman confirmed its truth.
Jocasta fled, and hung herself above their bed out shame and guilt. Upon seeing Jocasta's lifeless body, Oedipus cut her down and used her dress pins to gouge out his eyes, crying out that he did not wish to see his shame ever again.