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).
Spanish–American War
On August 5, on instructions from Spain, Governor General Basilo Augistin turned over command of the Philippines to his deputy, Fermin Jaudenes. On August 13, with American commanders unaware that a cease-fire had been signed between Spain and the U.S. on the previous day in Washington D.C., American forces captured the city of Manila from the Spanish in the Battle of Manila. This battle marked the end of Filipino–American collaboration, as the American action of preventing Filipino forces from entering the captured city of Manila was deeply resented by the Filipinos. This later led to the Philippine–American War, which would prove to be more deadly and costly than the Spanish–American War.