Who did Cleopatra merry?

She married her two half brothers, as was customary, Ptolemy XIII, and upon his death, Ptolemy XIV. At the death of Ptolemy XIV, she ruled jointly with her three-year-old son by Caesar.