1065, the territories were divided among his children. Sancho II became King of Castile, Alfonso VI, King of León and García, King of Galicia, while his daughters were given towns: Urraca was given Zamora, and Elvira was given Toro. Sancho II allied himself with Alfonso VI of León and together they conquered, then divided, Galicia. Sancho later attacked Alfonso VI and invaded León with the help of El Cid, and drove his brother into exile, thereby reuniting the three kingdoms. Urraca permitted the greater part of the Leonese army to take refuge in the town of Zamora. Sancho laid siege to the town, but the Castilian king was assassinated in 1072 by Bellido Dolfos, a Galician nobleman. The Castilian troops then withdrew. As a result, Alfonso VI recovered all his original territory of León, and became the king of Castile and Galicia. This was the second union of León and Castile, although the two kingdoms remained distinct entities joined only in a personal union. The oath taken by El Cid before Alfonso VI in Santa Gadea de Burgos regarding the innocence of Alfonso in the matter of the murder of his brother is well known. During the first years of the 12th century, Sancho, the only son of Alfonso VI, died, leaving only his daughter. Because of this, Alfonso VI took a different approach from other European kingdoms, including France. He gave his daughters, Elvira, Urraca, and Theresa in marriage to Raymond of Toulouse, Raymond of Burgundy, and Henry of Burgundy respectively. In the Council of Burgos in 1080 the traditional Mozarabic rite was replaced by the Roman one. Upon his death, Alfonso VI was succeeded by his daughter, the widowed Urraca, who then married Alfonso I of Aragon, but they almost immediately fell out. Alfonso tried unsuccessfully to conquer Urraca's lands, before he repudiated her in 1114. Urraca also had to contend with attempts by her son from her first marriage, the king of Galicia, to assert his rights. When Urraca died, this son became king of León and Castile as Alfonso VII. During his reign, Alfonso VII managed to annex parts of the weaker kingdoms of Navarre and Aragón which fought to secede after the death of Alfonso I of Aragon. Alfonso VII refused his right to conquer the Mediterranean coast for the new union of Aragón with the County of Barcelona (Petronila and Ramón Berenguer IV). 12th