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).
Filipinos
As a part of the Seven Years' War, British forces occupied Manila between 1762 and 1764. However, the only part of the Philippines which the British held was the Spanish colonial capital of Manila and the principal naval port of Cavite, both of which are located on Manila Bay. The war was ended by the Treaty of Paris (1763). At the end of the war the treaty signatories were not aware that Manila had been taken by the British and was being administered as a British colony. Consequently, no specific provision was made for the Philippines. Instead they fell under the general provision that all other lands not otherwise provided for be returned to the Spanish Empire. Many Indian Sepoy troops and their British captains mutinied and were left in Manila and some parts of the Ilocos and Cagayan. The ones in Manila settled at Cainta, Rizal and the ones in the north settled in Isabela. Most were assimilated into the local population.