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.
Hera sent Heracles into a fit of temporary madness due to her hatred for him. In his madness, Heracles killed their children either by shooting them with arrows or by throwing them into a fire. Whether Megara also died as a result of this attack depended on the author. In some sources, after Heracles completed his
Twelve Labours, Megara married Heracles' nephew
Iolaus and became the mother of
Leipephilene by him. 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 (who is the earliest surviving author to mention this tale) 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
Lycus who threatens them as Heracles is in the underworld. Heracles returns to save his family, but
Iris and the spirit of madness,
Lyssa, cause him to go mad and kill Megara and their children since he believes he is attacking Lycus. The
Hellenistic poem
Megara by an unknown author, presented a dialogue at
Tiryns between a mournful Megara and Heracles's mother
Alcmene, as the former grieves her children and Heracles's absence during his labours. == Cult dedicated to Megara's children ==