Portugal expanded Brazil across the treaty line
The 1494 Treaty of Tordesillas split overseas lands between Spain and Portugal along an imaginary line. Because people could not measure longitude accurately, the line was not strictly enforced, allowing Portuguese expansion of Brazil across it.