When did Spain invade the Philippines?
History of the Philippines (1521–1898)
Andrés Bonifacio called for a general offensive on Manila[40] and was defeated in battle at the town of San Juan del Monte. He regrouped his forces and was able to briefly capture the towns of Marikina, San Mateo and Montalban. Spanish counterattacks drove him back and he retreated to the mountains of Balara and Morong and from there engaged in guerrilla warfare.[41] By August 30, the revolt had spread to eight provinces. On that date, Governor-General Ramon Blanco declared a state of war in these provinces and placed them under martial law. These were Manila, Bulacan, Cavite, Pampanga, Tarlac, Laguna, Batangas, and Nueva Ecija. They would later be represented in the eight rays of the sun in the Filipino flag.[42] Emilio Aguinaldo and the Katipuneros of Cavite were the most successful of the rebels[43] and they controlled most of their province by September–October. They defended their territories with trenches designed by Edilberto Evangelista.[41]