Original: For eighteen days , up to August , 30 BC he was sole pharaoh , when he was killed on orders of Octavian , who would become the Roman emperor Augustus .
Simplified: Caesarion was the last king ( pharaoh ) of the Ptolemaic dynasty of Egypt .