What was the purpose of the Treaty of Tordesillas?

A.
to end a war between Spain and Portugal

B.
to give Portugal control over the Spice Islands

C.
to divide the non-European world between Spain and Portugal

D.
to create a trade agreement between Portuguese and Muslim traders