There were three relevant moments that defined the Ministry of Foreign Affairs as the institution that would later be established. The first was the signature of the 1750 Spanish–Portuguese treaty, which re-established the borders set in the Treaty of Tordesillas. This moment was not a foreign issue policy of Brazil per se, but was instead a pursuit of interests by the Portuguese in their largest colony. There was, however, a notable Brazilian in the diplomatic corps, Alexandre de Gusmão, who directed the Portuguese foreign policy of trying to separate the Americas from the subject of European successions. The height of Gusmão's diplomatic effort was the signing of the Treaty of Madrid of 1750, in which territorial issues in South America were resolved.