The Twelve Labours of Heracles or Hercules (Greek: , hoi Hērakleous athloi) are a series of episodes concerning a penance carried out by Heracles, the greatest of the Greek heroes, whose name was later Romanised as Hercules. They were accomplished over 12 years at the service of King Eurystheus. The episodes were later connected by a continuous narrative. The establishment of a fixed cycle of twelve labours was attributed by the Greeks to an epic poem, now lost, written by Peisander, dated about 600 BC. After Hercules killed his wife and children, he went to the oracle at Delphi. He prayed to the god Apollo for guidance. Hercules was told to serve the king of Mycenae, Eurystheus, for 12 years. During these 12 years, Hercules is sent to perform twelve difficult feats, called labours.
Driven mad by Hera (queen of the gods), Hercules slew his son, daughter, and wife Megara. After recovering his sanity, Hercules deeply regretted his actions; he was purified by King Thespius, then traveled to Delphi to inquire how he could atone for his actions. Pythia, the Oracle of Delphi, advised him to go to Tiryns and serve his cousin King Eurystheus for twelve years, performing whatever labours Eurystheus might set him; in return, he would be rewarded with immortality. Hercules despaired at this, loathing to serve a man whom he knew to be far inferior to himself, yet fearing to oppose his father Zeus. Eventually, he placed himself at Eurystheus's disposal.
Eurystheus originally ordered Hercules to perform ten labours. Hercules accomplished these tasks, but Eurystheus refused to recognize two: the slaying of the Lernaean Hydra, as Hercules' nephew and charioteer Iolaus had helped him; and the cleansing of the Augeas, because Hercules accepted payment for the labour. Eurystheus set two more tasks (fetching the Golden Apples of Hesperides and capturing Cerberus), which Hercules also performed, bringing the total number of tasks to twelve.