Ferdinand Magellan arrived in the Philippines in 1521, claiming the lands for Spain and converting some locals to Catholicism. However, Lapu-Lapu, a native ruler, resisted Spanish colonization and killed Magellan in 1521. Spain then began over 300 years of colonization, introducing Christianity, exploiting gold and other resources, and establishing political and economic systems like the encomienda. Filipino nationalism emerged in response to Spanish abuses, led by reformists like Rizal, del Pilar, and Lopez Jaena. Their Katipunan revolutionary movement was suppressed, leading to the Philippine Revolution and war for independence from Spain.