Spain and Portugal agreed on the Line of Demacration in 1494.
It divided the newly discovered lands outside Europe between Spain and Portugal, Hope that helps
Pope Alexander VI
Drawn north to south through Atlantic ocean in 1493, dividing Spain and Portugal.
400 BC in ancient Egypt