Ferdinand Magellan led the first expedition to the Philippines in 1521 with 3 ships remaining after mutinies. He reached the Philippines and engaged in peaceful interactions and religious conversions of local leaders. However, he was killed in the Battle of Mactan against Lapu-Lapu. The expedition continued westward, with one ship returning to Spain and completing the first circumnavigation of the globe. Later expeditions by Ruy Lopez de Villalobos in 1542-1546 and Miguel Lopez de Legaspi in 1564-1571 helped establish Spanish settlements and convert more Filipinos to Christianity, with Legaspi founding the settlements of Cebu and Manila which became the capital.