When Cleopatra and Ptolemy XIII inherited the throne, Cleopatra assumed power. However, she was driven out of Egypt by her brother, so she fled to Syria. Then, she assembled an army to try to regain the throne. With the help of Julius Caesar, Cleopatra defeated her brother, and declared the throne for herself. Ptolemy XIII fled Egypt after that.