History of the Philippines (1521–1898)
The history of the Philippines from 1521 to 1898, also known as the Spanish colonial period, was a period during which Spain controlled the Philippine islands as the Captaincy General of the Philippines, initially under New Spain until Mexican independence in 1821, which gave Madrid direct control over the area. It was also known as Spanish East Indies to the colonialists. It started with the arrival in 1521 of European explorer Ferdinand Magellan sailing for Spain, which heralded the period when the Philippines was a colony of the Spanish Empire, and ended with the outbreak of the Philippine Revolution in 1898, which marked the beginning of the American colonial era of Philippine history.
Diego de los Ríos
In September 1898, he became the Governor-General of the Philippines during the Spanish–American War after the United States of America took control of Manila after the 1898 Battle of Manila. The capital of the Spanish Philippines was at that time in Iloilo. While fighting with the Americans was over, the Spanish authorities continued to fight the forces of the Philippine Revolution for control of the country outside of Manila and Manila Bay