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).
Diego de los Ríos
In September 1898, he became the Governor-General of the Philippines during the Spanish–American War after the United States of America took control of Manila after the 1898 Battle of Manila. The capital of the Spanish Philippines was at that time in Iloilo. While fighting with the Americans was over, the Spanish authorities continued to fight the forces of the Philippine Revolution for control of the country outside of Manila and Manila Bay