Amphitryon ("harassing either side") was a Theban general, who was originally from Tiryns in the eastern part of the Peloponnese. He was friends with Panopeus.
Having accidentally killed his uncle Electryon, king of Mycenae, Amphitryon was driven out by another uncle, Sthenelus. He fled with Alcmene, Electryon's daughter, to Thebes, where he was cleansed from the guilt of blood by Creon, his maternal uncle, king of Thebes.
Alcmene, who had been betrothed to Amphitryon by her father, refused to marry him until he had avenged the death of her brothers, all of whom except one had fallen in battle against the Taphians. It was on his return from this expedition that Electryon had been killed. Amphitryon accordingly took the field against the Taphians, accompanied by Creon, who had agreed to assist him on condition that he slew the Teumessian fox which had been sent by Dionysus to ravage the country.
The Taphians, however, remained invincible until Comaetho, the king's daughter, out of love for Amphitryon cut off her father's golden hair, the possession of which rendered him immortal. Having defeated the enemy, Amphitryon put Comaetho to death and handed over the kingdom of the Taphians to Cephalus. On his return to Thebes he married Alcmene, who gave birth to twin sons, Iphicles being the son of Amphitryon, Heracles of Zeus, who had visited her during Amphitryon's absence.
While Amphitryon was gone, Zeus came to Alcmene disguised as her husband. The result was Heracles. Later, Amphitryon and Alcmene had a son named Iphicles.
He fell in battle against the Minyans, against whom he had undertaken an expedition, accompanied by the youthful Heracles, to deliver Thebes from a disgraceful tribute. According to Euripides (Hercules Furens) he survived this expedition, and was slain by his son in his madness.
Plautus, the Roman comedian, used this tale to present a burlesque play, similar to the later Aristophanic stories except with a tragic side. Hence, this story is one of the few surviving examples of Middle Comedy. Plautus' version includes the Long Night motif.
Amphitryon was the title of a lost tragedy of Sophocles; the episode of Zeus and Alcmene forms the subject of comedies by Plautus and Moliere. From Moliere's line "Le veritable Amphitryon est l'Amphitryon ou l'on dine," the name Amphitryon has come to be used in the sense of a generous entertainer, a good host. In the 20th century, the myth was the subject of a play by Jean Giraudoux, Amphitryon 38.