The Portuguese mariner sailing for Castile, Ferdinand Magellan, died while in the Philippines commanding a Castilian expedition in 1522, which was the first to circumnavigate the globe. The Basque commander Juan Sebastin Elcano led the expedition to success. Spain sought to enforce their rights in the Moluccan islands, which led a conflict with the Portuguese, but the issue was resolved with the Treaty of Zaragoza (1525), settling the location of the antimeridian of Tordesillas, which would divide the world into two equal hemispheres. From then on, maritime expeditions led to the discovery of several archipelagos in the South Pacific as the Pitcairn Islands, the Marquesas, Tuvalu, Vanuatu, the Solomon Islands or New Guinea, to which Spain laid claim.