Input (grade 13): Spain's claim to these lands was solidified by the Inter caetera papal bull of 1493, and by the Treaty of Tordesillas of 1494, in which the globe was divided into two hemispheres between Spanish and Portuguese claims.
Output (grade 9): By the Treaty of Tordesillas of 1494, the globe was divided into two hemispheres between Spain and Portugal.