King Laius received a prophecy that his son would kill him. To avoid this, Laius ordered Jocasta to kill their infant son, Oedipus. Jocasta could not do it and instead gave the baby to a shepherd to expose on a mountainside. The shepherd spared Oedipus, giving him to a childless couple. Oedipus grew up and eventually fulfilled the prophecy by unknowingly killing Laius.