Hercules is the son of Zeus and the mortal woman Alcmene, which makes him, from the moment he’s born, a permanent and very personal insult to Zeus’s wife Hera. Hera’s solution isn’t subtle. She drives Hercules into a fit of madness, and in that state he kills his own wife and children. When he comes back to himself and understands what he’s done, he goes to the oracle at Delphi looking for some way to atone for it. The oracle sends him to serve King Eurystheus, who, with Hera quietly steering things from behind the scenes, assigns him a set of tasks clearly designed to kill him. They’re remembered today as the Twelve Labors, and the honest way to describe them is a jealous goddess handing a grieving man an impossible to-do list and hoping he doesn’t survive the first item on it.
He survives all twelve, and most of them are solved less by brute strength than by actually thinking for a second. The Nemean Lion’s hide can’t be pierced by any weapon, so Hercules strangles it with his bare hands instead. The Hydra grows two new heads for every one that’s cut off, a monster specifically built to punish anyone who fights it the obvious way, until Hercules has his companion Iolaus cauterize each stump the instant a head comes off, so nothing has the chance to regrow. Diverting two entire rivers through the Augean stables to clean out decades of manure in a single afternoon is, strictly speaking, cheating the spirit of “mucking out a stable,” and it’s also exactly the kind of answer a king hoping Hercules would fail clearly didn’t see coming.
The labors don’t kill him. What eventually does is an act of pure bad luck dressed up as a gift. The centaur Nessus, dying from one of Hercules’s own poisoned arrows, tells Hercules’s wife Deianira that his blood is a love charm, guaranteed to keep her husband faithful forever. She believes him and later soaks a shirt in it, meaning well, and gives it to Hercules to wear. The blood is still carrying the same poison that killed Nessus, and it burns Hercules from the inside the moment he puts the shirt on, with no way to remove it without tearing his own skin away with it. Unable to survive the agony and unwilling to simply wait it out, Hercules builds his own funeral pyre and climbs onto it himself. Zeus, watching his son die by what amounts to an accident nobody actually intended, lifts him up to Olympus and makes him a god. It’s the one labor nobody assigned him and the only one that actually required dying to complete.