Timeline ng pagdating ng mga islam
During the early phase of the exploration of the northern part of the Philippines, López de Legazpi remained in Cebu and did not accompany his men during their conquest of Manila because of health problems and advanced age.
In Manila, López de Legazpi formed a peace pact with the native councils as well as the local rulers, Rajah Sulayman and Lakan Dula, Lakan and Rajah are same title of the native royalty.
López de Legazpi established a settlement there on June 24, 1571, and he also ordered the construction of the walled city of Intramuros.Rajah Tupas challenged the Spaniards, but was overpowered.The Spaniards established a colony, naming the settlements "Villa del Santisimo Nombre de Jesús" (Town of the Most Holy Name of Jesus) after an image of Sto. In 1569, due to a scarcity of food provisions in Cebu, López de Legazpi transferred to Panay town on the island of Panay, where they were peacefully welcomed by the people in the Kedatuan of Madja-as.Rajah Soliman had his conditions for Bambalito that if they were able to kill as least 50 Spaniards, he would revoke his alliance with López de Legazpi, and the Old Ache would help to expel the conquerors.Bambalito rode back to Macabebe and formed a fleet of two thousand five hundred moros consisting of soldiers from the villages along Manila Bay particularly from Macabebe and Hagonoy.
After obtaining peace with various indigenous nations and kingdoms, he made Cebu the capital of the Spanish East Indies in 1565 and later transferred to Manila in 1571.