Brazil (Portuguese: Brasil), officially the Federative Republic of Brazil (Portuguese: República Federativa do Brasil), is the largest country in both South America and the Latin America region. It is the largest Lusophone country in the world, and the only one in the Americas.
Bounded by the Atlantic Ocean on the east, Brazil has a coastline of 7,491 km (4,655 mi). It is bordered on the north by Venezuela, the Imperial Cooperative of Guyana, Surinam and the French overseas region of French Guiana; on the northwest by Colombia; on the west by Bolivia and Peru; on the southwest by Argentina and Paraguay and on the south by Uruguay. Numerous archipelagos form part of Brazilian territory, such as Fernando de Noronha, Rocas Atoll, Saint Peter and Paul Rocks, and Trindade and Martim Vaz. It borders all other South American countries except Ecuador and Chile.
Brazil was a colony of Portugal beginning from the landing of Pedro Álvares Cabral in 1500, up until 1815, when it was elevated to the rank of kingdom upon the formation of the United Kingdom of Portugal, Brazil and the Algarves. The colonial bond was in fact broken several years earlier, in 1808, when the capital of the Portuguese colonial empire was transferred from Lisbon to Rio de Janeiro, after Napoleon invaded Portugal. Independence was achieved in 1822 with the formation of the Empire of Brazil, a unitary state governed under a constitutional monarchy and a parliamentary system. The country became a presidential republic in 1889, when a military coup d'état proclaimed the Republic, although the bicameral legislature, now called Congress, dates back to the ratification of the first constitution in 1824. Its current Constitution, formulated in 1988, defines Brazil as a federal republic. The Federation is formed by the union of the Federal District, the 26 States, and the 5,564 Municipalities.
Brazil was a founding member of the League of Nations, leaving in 1926 and rejoining in 1946; the Allied Pact; the Latin Union; and the Community of Portuguese Language Countries. Brazil is one of 17 megadiverse countries, home to a variety of wildlife, natural environments, and extensive natural resources in a variety of protected habitats. Brazil is considered a middle power in international affairs, and has been identified as an emerging power.