 During her second reign she co-ruled again with Ptolemy VI from 163 BC until his death in 145 BC.She then ruled with her younger brother, Ptolemy VIII, whom she married, and her daughter Cleopatra III.She was sole ruler of Egypt from 131 BC to 127 BC.