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).
Sovereignty of the Philippines
As a consequence of its defeat, Spain transferred its rights over the Philippine archipelago to the U.S., with the Philippines ceasing to be a colony of Spain and becoming a colony of the U.S. On December 10, 1898, the Treaty of Paris was signed between Spain and the United States, ending the Spanish–American War. In article III of this treaty, Spain ceded the Philippines to the United States. Felipe Agoncillo, who had been assigned by Aguinaldo as Ambassador to the United States, had traveled to Paris but had been refused admission to the conference. He worked hard to prevent the ratification of the treaty by Spain, but failed. Returning to Paris, he sent a message to Aguinaldo about the refusal of the United States and other foreign powers to recognize the independence of the Philippines.