[1] Megara was the eldest daughter of Creon, King of Thebes, who was possibly the brother of Jocasta and uncle of Oedipus.
[6] Megara was married to Heracles by her father as a reward for the hero after he led the defense of Thebes against the Minyans at Orchomenus, and the couple had several sons together.
[11][12] Heracles' desire to atone for the murders of his wife and children is typically cited as the catalyst for becoming a slave to his cousin Eurystheus and performing the Twelve Labours.
Euripides presents an alternative order of events in his tragedy, Heracles, as it was the completion of the twelfth labour (retrieving Cerberus from Hades) that begun the agon.
The play begins with Megara, her children, and Amphitryon as suppliants at an altar seeking refuge from the tyrant Lykos who threatens them as Heracles is in the underworld.