Portuguese colonization of the Americas won a significant victory in the Second Battle of Guararapes in 1649. By 1654, the Netherlands had surrendered and returned control of all Brazilian land to the Portuguese. In 1751, the State of Maranhão was restructured into the State of Grão-Pará and Maranhão, with a new capital and government. In 1772, the State of Grão-Pará and Maranhão was split into two new states, the State of Grão-Pará and Rio Negro and the State of Maranhão and Piauí. The new states would fare poorly and only last 3 years. In 1775, the three colonies of Portuguese America (the State of Brazil,
Spanish colonization of the Americas were predominantly "criollos" (Americas-born people of European ancestry, mostly Spanish or Portuguese), bourgeois and influenced by liberalism and in some cases with military training in the mother country. In 1809 the first declarations of independence from Spanish rule occurred in the Viceroyalty of New Granada. The first two were in present-day Bolivia at Sucre (May 25), and La Paz (July 16); and the third in present-day Ecuador at Quito (August 10). In 1810 Mexico declared independence, with the Mexican War of Independence following for over a decade. In 1821 Treaty of Córdoba established Mexican independence from Spain and concluded the