Spanish–Moro conflict
The Spanish initiated the conflict by conquering the Philippines and invading Moro territory in an effort to subjugate the region to their rule since the 1500s. When the Spanish conquered the Muslim Kingdom of Maynila, a vassal of the Sultanate of Brunei, the Islamic rajah, Rajah Sulayman resisted the Spanish. Manila then became the capital of the Spanish Philippines after the conquest, with the Spanish forcibly converting people to Catholicism. The Spanish–Moro Wars started with the Castille War, a war between Spaniards and the Sultanate of Brunei. (The term "Moro" at this time included Muslim Tagalogs who were ruled by the Sultanate of Brunei).
History of the Philippines
Over the next several decades, other Spanish expeditions were dispatched to the islands. In 1543, Ruy López de Villalobos led an expedition to the islands and gave the name Las Islas Filipinas (after Philip II of Spain) to the islands of Samar and Leyte. The name was then extended to the entire archipelago later on in the Spanish era.
European colonization began in earnest when Spanish explorer Miguel López de Legazpi arrived from Mexico in 1565 and formed the first European settlements in Cebu. Beginning with just five ships and five hundred men accompanied by Augustinian monks, and further strengthened in 1567 by two hundred soldiers, he was able to repel the Portuguese and create the foundations for the colonization of the Archipelago. In 1571, the Spanish, their Latin-American recruits and their Filipino (Visayan) allies, commanded by able conquistadors such as Mexico-born Juan de Salcedo, attacked and occupied the kingdom of Tondo as well as Maynila, a vassal-state of the Brunei Sultanate, establishing Manila as the capital of the Spanish East Indies.