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.
Military history of Spain
After Christopher Colombus's successful navigation to the New World under Spanish patronage, Spanish forces rapidly began to occupy much of the new territories, rapidly taking the Bahamas and defeating the local Arawak speaking indigenous groups. The efforts of Ferdinand Magellan, reaching the island of Limasawa in 1521, led to the subsequent establishment of the colony of the Philippines under Miguel López de Legazpi which was to become an essential Spanish military base in the Pacific. The challenge of the Barbary Pirates encouraged defensive and punitive expeditions across the Mediterranean, resulting in the conquest of various outposts in North Africa, including Melilla in 1497, Mazalquivir in 1505, Oran in 1509, Algiers in 1510, Tripoli in 1511 and the smaller Plazas de Soberania.