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).
Military history of the Philippines
The Spanish–American War was formally concluded on December 10, 1898 by the Treaty of Paris between the United States and Spain. In that treaty, Spain ceded the Philippine Archipelago to the United States, and the United States agreed to pay US$20,000,000 to the Spanish government. The United States then exercised sovereignty over the Philippines. The insurgent First Philippine Republic was formally established with the proclamation of the Malolos Constitution on January 23, 1899.