Ptolemy XII made Cleopatra his regent and joint ruler in 52 BC, naming her and his son (Ptolemy XIII) joint successors in his will and testament.