Ptolemy XI had his cousin-wife killed shortly after their marriage in 80 BC, but he was killed soon thereafter in the resulting riot over the assassination.[52][54][55] Ptolemy XI (and perhaps his uncle Ptolemy IX or his father) willed the Ptolemaic Kingdom to Rome as collateral for loans, so the Romans had legal grounds to take over Egypt (their client state).[52][18][56] They chose instead to carve up the Ptolemaic realm to be ruled by Ptolemy IX's two illegitimate sons, bestowing Cyprus to Ptolemy of Cyprus and Egypt to Ptolemy XII.[52][54]