Ferdinand Magellan, a Portuguese explorer sailing for Spain, claimed the Philippines for Spain in 1521 and named them after King Philip II of Spain. They were thereafter known as Las Filipinas.