After the death of her husband/brother, Ptolemy XIII, Cleopatra and her brother Ptolemy XIV were married and declared joint rulers of Egypt. He was about 12 years old when he acceded to the throne.