Ptolemy XII Neos Dionysus (Ancient Greek: Πτολεμαῖος Νέος Διόνυσος, romanized: Ptolemaios Neos Dionysos, lit. 'Ptolemy the new Dionysus' c. 117 – 51 BC) was a king of the Ptolemaic Kingdom of Egypt who ruled from 80 to 58 BC and then again from 55 BC until his death in 51 BC. He was commonly known as Auletes (Αὐλητής, "the Flautist"), referring to his love of playing the flute in Dionysian festivals. A member of the Ptolemaic dynasty, he was a descendant of its founder Ptolemy I, a Macedonian Greek general and companion of Alexander the Great.
Ptolemy XII was an illegitimate son of Ptolemy IX by an uncertain mother. In 116 BC, Ptolemy IX became co-regent with his mother, Cleopatra III. However, due to a civil war against his mother and his brother, Ptolemy X, he was exiled in 107 BC. Cleopatra III sent her grandsons to Kos in 103 BC. They were captured by Mithridates VI of Pontus probably in 88 BC. After the killing of his cousin Ptolemy XI, Ptolemy XII was recalled from Pontus and proclaimed pharaoh, while his brother, also named Ptolemy, was installed as king of Cyprus.