On 31 May 52 BC Cleopatra was made a regent of Ptolemy XII as indicated by an inscription in the Temple of Hathor at Dendera.