The Bacchae; also known as The Bacchantes is an ancient Greek tragedy, written by the Athenian playwright Euripides during his final years in Macedonia, at the court of Archelaus I of Macedon. It premiered posthumously at the Theatre of Dionysus in 405 BC as part of a tetralogy that also included Iphigeneia at Aulis and Alcmaeon in Corinth, and which Euripides' son or nephew is assumed to have directed. It won first prize in the City Dionysia festival competition. The tragedy is based on the Greek myth of King Pentheus of Thebes and his mother Agave, and their punishment by the god Dionysus (who is Pentheus's cousin). The god Dionysus appears at the beginning of the play and proclaims that he has arrived in Thebes to avenge the slander, which has been repeated by his aunts, that he is not the son of Zeus. In response, he intends to introduce Dionysian rites into the city, and he intends to demonstrate to the king, Pentheus, and to Thebes that he was indeed born a god. At the end of the play, Pentheus is torn apart by the women of Thebes and his mother Agave bears his head on a pike to her father Cadmus.