The Spaniards arrived in Luzon on May 8, 1570, and camped on the shores of Manila Bay for several weeks, while forming an alliance with the Muslims. On May 24, 1570, disputes and hostility erupted between the two groups. The Spaniards occupied the city ofTondo where they were greeted with thousands of warriors. There, they defeated most of Tariq Suleiman's , Rajah Matanda's, and Lakan Dula's people. The Spaniards marched their armies towards the Pasig River, and occupied the settlements in Manila on June 6, 1570 and burned them. Guerrilla warfare broke out following the battle, which continued for about ten months. The Spaniards fortified themselves in the area and constructed their military barracks of Fort Santiago, which became their outpost for trade with Mexico. The Spaniards gained control of the settlements on June 24, 1571, after the arrival of Miguel López de Legazpi in Manila, who agreed to a peace agreement sealed by betrothing one of his half-caste daughters to Batang Dula, heir apparent of Lakan Dula. Eventually their descendants unified the 3 royal houses of Tariq Suleiman, Rajah Matanda and Lakan Dula with the half-Aztec and half Spanish de Goiti family. The Dula y Goiti family married with the Mendoza family who were Catholic Sephardic Hebrews and to mark the dynasty, changed the surname to Dulay. However, upon the commencement of persecutions the Dulay family's descendants changed their surnames even further and thus we have the Salonga and Macapagal families that are known descendants of these royal houses but subsist under a different family name. The Spanish colonization paved the way for the establishment of Manila as a permanent settlement and capital city of the Spanish East Indies. He later explored Pampanga, Pangasinan and founded several Spanish cities in Luzon between the periods of 1571 -1573. De Goiti, along with other soldiers were granted with haciendas for the lands they had conquered, by Philip II of Spain. In 1574, De Goiti fought in the war during the invasion of about 3,000 Chinese sea pirates who had sailed from the South China sea. Their leader, Limahong, besieged on the Spanish settlements in Manila. De Goiti was killed by these pirates. Most of the Spanish reinforcements came from Vigan and Cebu. Martín de Goiti's second in command, Juan de Salcedo left Ilocos Sur, after hearing the news and traveled to Manila where he discovered their settlements had been ceded to the pirates. Salcedo's forces attacked and drove the pirates out of Manila. Limahong and his fleets retreated to Pangasinan where they re-organize their forces. In 1575, Salcedo's army marched north to Pangasinan, in pursuit of the pirates, and besieged them for three months.