Treaty of Tordesillas
Before the Iberian Union period (1580–1640), Spain tried to prevent Portuguese expansion into Brazil with the 1494 Treaty of Tordesillas. After the Iberian Union period, the Eastern Strip were settled by Portugal. This was disputed in vain, and in 1777 Spain confirmed Portuguese sovereignty.