Cleopatra needed the help of Julius Caesar to overthrow Ptolemy and seize the throne. Caesar in turn declared himself a living God.
But it was Caesar’s megalomania that won out in the end. Every one of his successors was worshipped as a divine emperor.