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
Revolutionary sentiments arose in 1872 after three Filipino priests, Mariano Gómez, José Burgos, and Jacinto Zamora, known as Gomburza, were accused of sedition by colonial authorities and executed by garote. This would inspire the Propaganda Movement in Spain, organized by Marcelo H. del Pilar, José Rizal, Graciano López Jaena, and Mariano Ponce, that clamored for adequate representation to the Spanish Cortes and later for independence. José Rizal, the most celebrated intellectual and radical ilustrado of the era, wrote the novels "Noli Me Tángere", and "El filibusterismo", which greatly inspired the movement for independence. The Katipunan, a secret society whose primary purpose was that of overthrowing Spanish rule in the Philippines, was founded by Andrés Bonifacio who became its "Supremo" (leader).
The Philippine Revolution began in 1896. Rizal was wrongly implicated in the outbreak of the revolution and executed for treason in 1896. The Katipunan in Cavite split into two groups, Magdiwang, led by Mariano Álvarez (a relative of Bonifacio's by marriage), and Magdalo, led by Emilio Aguinaldo. Leadership conflicts between Bonifacio and Aguinaldo culminated in the execution or assassination of the former by the latter's soldiers. Aguinaldo agreed to a truce with the Pact of Biak-na-Bato and Aguinaldo and his fellow revolutionaries were exiled to Hong Kong. Not all the revolutionary generals complied with the agreement. One, General Francisco Makabulos, established a Central Executive Committee to serve as the interim government until a more suitable one was created. Armed conflicts resumed, this time coming from almost every province in Spanish-governed Philippines.
In 1898, as conflicts continued in the Philippines, the USS Maine, having been sent to Cuba because of U.S. concerns for the safety of its citizens during an ongoing Cuban revolution, exploded and sank in Havana harbor. This event precipitated the Spanish–American War. After Commodore George Dewey defeated the Spanish squadron at Manila, a German squadron arrived in Manila and engaged in maneuvers which Dewey, seeing this as obstruction of his blockade, offered war—after which the Germans backed down. The German Emperor expected an American defeat, with Spain left in a sufficiently weak position for the revolutionaries to capture Manila—leaving the Philippines ripe for German picking.