The Line of Demarcation<span> between Spanish and Portuguese territory was first defined by Pope Alexander VI (1493) and was later revised by the Treaty of Tordesillas (1494). Spain won control of lands discovered west of the </span>line<span>, while Portugal gained rights to new lands to the east. The idea of this was to separate distinctively the colonies of Spain (most of latin america) and Portugal (Brazil and most of Africa) thus avoiding a war.