 In 164 BC Cleopatra II and her husband were temporarily deposed by Ptolemy VIII, but were restored to power in 163 BC.Ptolemy VI died in 145 BC.Cleopatra II agreed to marry her younger brother, Ptolemy VIII Euergetes II.