The Magellan expedition, sometimes termed the Magellan–Elcano expedition, was a 16th-century Spanish expedition planned and initially led by Portuguese explorer Ferdinand Magellan and completed by the Spanish navigator Juan Sebastián Elcano. Its purpose was to secure a maritime trade route with the Moluccas, or Spice Islands, in present-day Indonesia. The expedition departed Spain in 1519 and returned there in 1522 under the command of Elcano, who continued the voyage after Magellan's death in the Philippines. One of the most significant voyages in the Age of Discovery, the nearly three-year expedition totaled 60,440 km (37,560 mi) and achieved the first circumnavigation of Earth in history. It also marked the first crossing of the Pacific by a European expedition, revealing the vast scale of that ocean, and proved that ships could sail around the world on a western sea route.