Initially, the line of demarcation did not encircle the earth. Instead, Spain and Portugal could conquer any new lands they were the first to discover, Spain to the west and Portugal to the east, even if they passed each other on the other side of the globe. But Portugal's discovery of the highly valued Moluccas in 1512 caused Spain to argue in 1518 that the Treaty of Tordesillas divided the earth into two equal hemispheres. After the surviving ships of Magellan's fleet visited the Moluccas in 1521, Spain claimed that those islands were within its western hemisphere. In the early 16th century, the Treaty between Spain and Portugal, concluded at Vitoria; February 19, 1524 and called for the Badajoz Junta to meet in 1524, at which the two countries tried to reach an agreement on the anti-meridian but failed. They finally agreed in a treaty signed at Zaragoza that Spain would relinquish its claims to the Moluccas upon the payment of 350,000 ducats of gold by Portugal to Spain. To prevent Spain from encroaching upon Portugal's Moluccas, the anti-meridian was to be leagues or 17° to the east of the Moluccas, passing through the islands of Las Velas and Santo Thome. This distance is slightly smaller than the 300 leagues determined by Magellan as the westward distance from los Ladrones to the Philippine island of Samar, which is just west of due north of the Moluccas.