Brazil is declared a republic by Marshal Deodoro da Fonseca as Emperor Pedro II is deposed in a military coup.

The decline and fall of Pedro II of Brazil took place over the course of the 1880s. Paradoxically, it coincided with a period of unparalleled economic and social stability and progress for the Empire of Brazil, with the nation achieving a prominent place as an emerging power in the international arena.

The roots of the collapse of the monarchy can be traced as far back as 1850, when Pedro II's youngest male child died. From that point onward, the Emperor himself ceased to believe in the monarchy as a viable form of government for Brazil's future, as his remaining heir was a daughter. Although constitutionally permitted, a female ruler was considered unacceptable by both Pedro II and the ruling circles. This issue was deferred for decades, while the country became more powerful and prosperous. So long as the Emperor was in good health, the question of succession could be ignored.

From 1881 onwards, Pedro II's health began to fail and he gradually withdrew from public affairs. Weary of being tied to a throne which he doubted would survive his death, he persevered out of duty and because there seemed no immediate alternative. Nor did his daughter and heir, Isabel, exhibit a desire to assume the crown. Both, however, had the support of the Brazilian people. The royal family's indifference to the Imperial system allowed a discontented republican minority to grow bolder and eventually launch the coup which overthrew the Empire.

Pedro II may be considered a rare instance of a head of state who, despite being considered a highly successful ruler to the end, was ultimately overthrown and exiled.

Brazil (Portuguese: Brasil, pronounced [bɾaˈziw]), officially the Federative Republic of Brazil (Portuguese: República Federativa do Brasil), is the largest country in both South America and Latin America. At 8.5 million square kilometers (3,300,000 sq mi) and with over 211 million people, Brazil is the world's fifth-largest country by area and the sixth most populous. Its capital is Brasília, and its most populous city is São Paulo. The federation is composed of the union of the 26 states and the Federal District. It is the largest country to have Portuguese (namely Brazilian Portuguese) as an official language and the only one in the Americas; it is also one of the most multicultural and ethnically diverse nations, due to over a century of mass immigration from around the world; as well as the most populous Roman Catholic-majority country.

Bounded by the Atlantic Ocean on the east, Brazil has a coastline of 7,491 kilometers (4,655 mi). It borders all other countries in South America except Ecuador and Chile and covers 47.3% of the continent's land area. Its Amazon basin includes a vast tropical forest, home to diverse wildlife, a variety of ecological systems, and extensive natural resources spanning numerous protected habitats. This unique environmental heritage makes Brazil one of 17 megadiverse countries, and is the subject of significant global interest, as environmental degradation through processes like deforestation has direct impacts on global issues like climate change and biodiversity loss.

Brazil was inhabited by numerous tribal nations prior to the landing in 1500 of explorer Pedro Álvares Cabral, who claimed the area for the Portuguese Empire. In the first centuries of Colonial Brazil, the Indigenous Tupi language and the general languages derived from it were the main forms of communication of the entire colonial system, overcoming even the hegemony of the Portuguese language, contributing to the toponymy of the Brazilian territory, in Brazilian culture and vocabulary. Brazil remained a Portuguese colony until 1808 when the capital of the empire was transferred from Lisbon to Rio de Janeiro. In 1815, the colony was elevated to the rank of kingdom upon the formation of the United Kingdom of Portugal, Brazil and the Algarves. Independence was achieved in 1822 with the creation of the Empire of Brazil, a unitary state governed under a constitutional monarchy and a parliamentary system. The ratification of the first constitution in 1824 led to the formation of a bicameral legislature, now called the National Congress. The country became a presidential republic in 1889 following a military coup d'état. An authoritarian military junta came to power in 1964 and ruled until 1985, after which civilian governance resumed. Brazil's current constitution, formulated in 1988, defines it as a democratic federal republic. Due to its rich culture and history, the country ranks thirteenth in the world by number of UNESCO World Heritage Sites.Brazil is a regional and middle power, and an emerging power.

Brazil is classified as an upper-middle income economy by the World Bank and a newly industrialized country, with the largest share of global wealth in South America. It is considered an advanced emerging economy, having the twelfth largest GDP in the world by nominal, and eighth by PPP measures. It is one of the world's major breadbaskets, being the largest producer of coffee for the last 150 years. Brazil is a founding member of the United Nations, the G20, BRICS, Mercosul, Organization of American States, Organization of Ibero-American States and the Community of Portuguese Language Countries.