Filipino revolutionaries under the Katipunan movement engaged Spanish colonial forces in fighting that formed part of the broader Philippine Revolution of 1896-1898, a struggle that would eventually end over three centuries of Spanish rule and reshape the islands' path toward eventual independence.
By early 1897 the Philippine Revolution, ignited the previous August, had spread across several provinces despite the execution of key leaders and harsh Spanish reprisals. Revolutionary forces under commanders loyal to Emilio Aguinaldo fought a grinding guerrilla campaign against better-equipped but overstretched Spanish garrisons.
Fighting in the hill country of Cavite province tested both sides' resolve, as Filipino fighters used intimate knowledge of the terrain to offset their disadvantage in weaponry and training.
The revolution would ultimately fail to expel Spain outright before an 1897 truce, but the momentum it built carried into renewed fighting the following year, entangling with the Spanish-American War and setting the stage for the short-lived First Philippine Republic and the subsequent Philippine-American War, as control passed from Spain to the United States rather than to the Filipino revolutionaries themselves.