Cleopatra made some enemies amongst the courtiers. The reign of Cleopatra was ended by a cabal of courtiers, led by the eunuch Pothinus. They removed Cleopatra from power, as her being a woman, and made Ptolemy sole ruler, in about 51 to 48 BC. She had to leave the country. Ptolemy was king, but because he was still a boy, Pothinus and his friends were the real leaders of Egypt.