By the middle of the 16th century, the Spanish and the Portuguese controlled the coastal areas of South America.