The reign of Cleopatra VII of the Ptolemaic Kingdom of Egypt began with the death of her father, Ptolemy XII Auletes, by March 51 BC. It ended with her suicide in August 30 BC, which also marked the conclusion of the Hellenistic period and the annexation of Egypt into a Roman province. In the style of her Greek predecessors, Cleopatra reigned over Egypt and other territories as an absolute monarch, although the Roman Republic frequently interfered in its internal affairs. Her personal rule of Egypt was characterized by a continued reliance on agriculture, extensive trade and conflict with other states, the tackling of corruption, strategic management of the bureaucracy, and ambitious building projects.
Cleopatra initially acceded to the throne alongside her younger brother Ptolemy XIII, but a fallout between them led to open civil war. Further chaos ensued when the Roman consul Julius Caesar pursued his rival Pompey into Ptolemaic Egypt, a Roman client state. Upon arrival, Caesar discovered that Pompey had been assassinated on the orders of Ptolemy XIII. Caesar attempted to reconcile the siblings, but a discontent Ptolemy XIII and his adviser Potheinos raised forces against Caesar and Cleopatra. Reinforcements lifted the siege in early 47 BC, and Ptolemy XIII died shortly afterwards in the Battle of the Nile. Arsinoe IV (Cleopatra's younger sister and a rival claimant to the throne) was exiled, and Caesar, now dictator, declared Cleopatra and her younger brother Ptolemy XIV co-rulers of Egypt. However, Caesar maintained a private affair with Cleopatra that produced a son, Caesarion, before he departed Alexandria for Rome.