Answer :

It was an agreement between Spain and Portuguese over the confusion of newly claimed land.