what did the king of mycanae ordered heercules to perform as a punishment

The king of Mycenae ordered Hercules to perform twelve seemingly impossible tasks, known as the Twelve Labors, as a punishment for killing his family in a fit of madness.