What was the purpose of the Treaty of Tordesillas?

to end a war between Spain and Portugal
to end a war between Portugal and Muslims
to divide the non-European world between Spain and Portugal
to settle the terms of a trade agreement between Portugal and Muslims

The purpose of the Treaty of Tordesillas was to divide the non-European world between Spain and Portugal. It aimed to resolve conflicts between the two countries over newly discovered lands during the Age of Exploration by establishing a line of demarcation. This line divided the newly discovered territories between the two countries, with Spain having authority over lands to the west of the line and Portugal having authority over lands to the east.