The Treaty of Tordesillas was an agreement between Spain and Portugal that was signed in 1494, in the namesake town in Spain. In this treaty, Spain and Portugal agreed to divide the New World between themselves for colonization, conversion, and administration by setting a line of demarcation that had run from north to south at a meridian about 370 leagues (one league is equal to three miles) west of the Cape Verde islands. Spain would be granted everything to the west of this line, while Portugal would receive everything to the east. This corresponded roughly to most of eastern modern Brazil and Africa being conceded to Portugal, while Spain would take the rest of the New World. It would later be revised by the Treaty of Zaragoza (1529), which included Asia, since neither party had considered the world's spherical shape at the time of drawing the line of demarcation, and they quickly realized they would need a second line to divide the world into two hemispheres. The Portuguese hemisphere included Japan, as well as the rest of Asia to the west, leaving Spain with most of the Pacific Ocean but none of mainland Asia, with the exception of Spain given the right to trade in the Philippines. Though the treaty was largely ignored by other European powers, particularly when the Protestant Reformation took root, Spain and Portugal followed it fairly faithfully, though it did require some amendments as more of the world was charted.