Ptolemy XIII, d. 44 B.C., king of ancient Egypt (47–44 B.C.), the last of the Macedonian dynasty, but for his sister, Cleopatra. He was a child when his brother Ptolemy XII drowned. Julius Caesar married him to Cleopatra in 47 B.C. and made him joint ruler with her; she later had him murdered.