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.
Spanish East Indies
Seeking to develop trade between the East Indies and the Americas across the Pacific Ocean, Antonio de Mendoza encouraged the exploration of these Asian territories and commissioned the expedition of Ruy López de Villalobos to the Philippines in 1542–1543. Miguel López de Legazpi set out from Mexico, and established the first Spanish settlement in the Philippines in 1565, which became the town of San Miguel in present-day Cebu. That same year, another member of the expedition, Andrés de Urdaneta discovered a maritime route from the Philippines to Mexico, across the Pacific, leading to the important transpacific trade link of the Manila-Acapulco Galleons. In 1571, Manila was captured from the Sultanate of Brunei and then Manila was made the seat of the Spanish Captaincy General of the Philippines. These and other Asian territories claimed by the Spanish crown were to be governed from the Viceroyalty of New Spain in Mexico City.