The Philippine Revolution (called the Tagalog War by the Spanish) (Filipino: Himagsikang Pilipino) was fought between the people of the Philippines and the Spanish colonial authorities.
The revolt lasted for two (2) years in which it took part in the Spanish-American War in 1898-1946.
The Philippine Revolution began in August 1896, when the Spanish authorities discovered Katipunan, an anti-colonial secret organization. The Katipunan, led by Andrés Bonifacio, was a liberationist movement whose goal was to gain independence from Spain through armed revolt. The organization began to influence much of the Philippines. During a mass gathering in Caloocan, the leaders of Katipunan organized themselves into a revolutionary government, named the newly established government "Haring Bayang Katagalugan", and openly declared a nationwide armed revolution. Bonifacio called for an attack on the capital city of Manila. This attack failed; however, the surrounding provinces began to revolt. In particular, rebels in Cavite led by Mariano Alvarez and Emilio Aguinaldo (who were from two different factions of Katipunan) won early victories. A power struggle among the revolutionaries led to Bonifacio's death in 1897, with command shifting to Aguinaldo, who led his own revolutionary government. That year, the revolutionaries and the Spanish signed the Pact of Biak-na-Bato, which temporarily reduced hostilities. Aguinaldo self-exiled himself to Hong Kong. However, the hostilities never completely ceased.
On April 21, 1898, the United States launched a naval blockade of Cuba, which was the first military action of the Spanish–American War. On May 1, the U.S. Navy's Asiatic Squadron, under Commodore George Dewey decisively defeated the Spanish navy in the Battle of Manila Bay, effectively seizing control of Manila. On May 19, Aguinaldo, unofficially allied with the United States, returned to the Philippines and resumed attacks against the Spaniards. By June, the rebels had gained control of nearly all of the Philippines, with the exception of Manila. On June 12, Aguinaldo issued the Philippine Declaration of Independence. However, neither Spain nor the United States recognized Philippine independence.
The Spanish rule of the Philippines officially ended with the Treaty of Paris of 1898, which also ended the Spanish–American War. In the treaty, Spain ceded control of the Philippines and other territories to the United States. There was an uneasy peace around Manila, with the American forces controlling the city and the weaker Philippines forces surrounding them.
On February 4, 1899, in the Battle of Manila, fighting broke out between the Filipino and American forces, beginning the Philippine–American War. Aguinaldo immediately ordered "That peace and friendly relations with the Americans be broken and that the latter be treated as enemies". In June 1899, the nascent First Philippine Republic formally declared war against the United States.
The Philippines would not become an internationally recognized independent state until 1946, a turning point in Philippine History.