After the defeat of Antony and Cleopatra at the Battle of Actium in 31 BC, Cleopatra ... She may have intended to go into exile, perhaps with Antony, who may have hoped that he would be allowed to retire as Lepidus had. Caesarion reappears in the historical record in 30 BC, when Octavian invaded Egypt and searched for him. Cleopatra may have sent Caesarion, 17 years old at the time, to the Red Sea port of Berenice for safety, possibly as part of plans for an escape to India; he may have been sent years earlier, but the sources are unclear. Plutarch does say that Caesarion was sent to India, but also that he was lured back by false promises of the kingdom of Egypt ...
Octavian captured the city of Alexandria on 1 August 30 BC, the date that marks the official annexation of Egypt to the Roman Republic. Around this time Mark Antony and Cleopatra died, traditionally said to be by suicide, though murder has been suggested.[9] ... Caesarion's guardians, including his tutor, were themselves either lured by false promises of mercy into returning him to Alexandria or simply betrayed him; the records are unclear.
Octavian is supposed to have had Pharaoh Caesarion executed in Alexandria, following the advice of Arius Didymus, who said "Too many Caesars is not good" (a pun on a line in Homer).[11] It is popularly thought that he was strangled, but the exact circumstances of his death have not been documented.[citation needed] Octavian then assumed absolute control of Egypt. The year 30 BC was considered the first year of the new ruler's reign according to the traditional chronological system of Egypt.