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).
Independence Day (Philippines)
At the outbreak of the Spanish–American War, Commodore George Dewey sailed from Hong Kong to Manila Bay leading the Asiatic Squadron of the U.S. Navy. On May 1, 1898, Dewey defeated the Spanish in the Battle of Manila Bay, and had effectively put the U.S. in control of the Spanish colonial government. Later that month, the U.S. Navy transported Aguinaldo back to the Philippines. Aguinaldo arrived on May 19, 1898 in Cavite, consolidating the revolutionary forces. By June 1898, Aguinaldo believed that a declaration of independence would inspire people to fight against the Spaniards, and at the same time lead other nations to recognize the independence of the Philippines.