Cleopatra VII was the last active ruler of the Ptolemaic Kingdom of Egypt. She became queen in 51 BC after the death of her father, Ptolemy XII. As queen, she ruled Egypt jointly with her younger brothers Ptolemy XIII and Ptolemy XIV. She allied with Julius Caesar against her brother Ptolemy XIII, leading Ptolemy to have her expelled from Egypt. When Caesar arrived in Alexandria, Cleopatra had herself smuggled to him rolled up in a rug. They began a romantic relationship and she bore him a son, Caesarion. After Caesar's assassination, she allied with Mark Antony and bore him three children. This led Octavian to have Antony and Cleopatra defeated,