Flag of Empire of Brazil, for article on Bahia independence

Bahia’s liberation from Portugal completes Brazilian independence

On the seventh of September 1822 C.E., Brazil’s Prince Regent Pedro I declared independence from Portugal in a moment that would become legend — the Grito do Ipiranga, or Cry of Ipiranga. But for one vast and deeply contested province, that declaration meant little. In Bahia, Portuguese loyalists and their military forces held firm, and the work of liberation had only just begun.

Key findings

  • Bahia independence: Though Brazil declared independence on 7 September 1822 C.E., Portuguese forces were not expelled from Bahia until 2 July 1823 C.E. — a date that Bahians still celebrate as their own independence day, often with more fervor than the national holiday.
  • Brazilian independence struggle: Control of Bahia was decided in a series of land and naval battles, most notably at Pirajá in November 1822 C.E., where Brazilian and independence-aligned forces — including many Afro-Brazilian fighters — repelled a Portuguese advance.
  • Portuguese colonial rule: Bahia was the original seat of colonial power in the Americas for Portugal, serving as the administrative capital of all Portuguese holdings in the Americas from 1549 C.E. to 1763 C.E. — making its liberation symbolically and politically significant beyond its borders.

The last stronghold

Bahia’s relationship with Portugal was different from that of other Brazilian provinces. Salvador, its capital, had been the first city Portugal planted in Brazil — a fortified hilltop settlement overlooking the Bay of All Saints, founded in 1549 C.E. For more than two centuries, it was the administrative heart of the entire Portuguese colonial enterprise in the Americas.

By the early 19th century, Bahia’s landed elite — enriched by sugar, tobacco, and the brutal traffic of enslaved Africans — remained deeply tied to the Portuguese crown. When Pedro I declared independence in São Paulo, Bahia’s ruling class did not follow. Portuguese troops under General Inácio Luís Madeira de Melo held the province by force, and independence-minded Bahians were pushed out of Salvador into the interior.

What followed was nearly a year of armed conflict. Brazilian irregular forces, commanded by figures including the French mercenary Pierre Labatut and later the Brazilian-born general Felisberto Caldeira Brant, encircled Portuguese positions. The decisive confrontation came at Pirajá, where a Portuguese assault was repelled in conditions that mixed military strategy with sheer improvisation — and, by some accounts, a bugler’s misread signal that accidentally rallied Brazilian troops to a charge they won.

Who fought for freedom

The soldiers who drove Portugal from Bahia were not a homogeneous army. Among them were freed and enslaved Afro-Brazilians, Indigenous Brazilians, mixed-race Brazilians known as pardos, and poor white Brazilians — communities whose stake in the outcome of independence was complicated by the fact that the new Brazilian state intended to preserve the institution of slavery.

Afro-Brazilian fighters played a documented role in the independence battles, including at Pirajá. Yet the Empire of Brazil they helped create would not abolish slavery until 1888 C.E. — more than six decades later. The freedom celebrated on 2 July 1823 C.E. was a freedom for some, not all.

Still, the popular character of Bahia’s liberation — fought not just by elites but by ordinary people across racial lines — gave the Bahian independence movement a texture distinct from the royal decree issued in São Paulo. Scholars of Brazilian history have noted that July 2 carries particular weight in Bahia precisely because it reflects a broader, messier, more genuinely popular struggle.

Lasting impact

The expulsion of Portuguese forces from Bahia in 1823 C.E. completed Brazilian independence in practice, not just in proclamation. It unified the territory of the new Empire of Brazil and removed Portugal’s last military foothold on the continent.

Bahia’s earlier role as the colonial capital meant that many of Brazil’s oldest institutions — its first medical college (founded 1810 C.E.), its first engineering school (1899 C.E.), its oldest cathedral — were rooted there. The culture that grew in Salvador blended West African, Indigenous, and Portuguese traditions into something new: the Afro-Brazilian religious practice of Candomblé, the martial art of capoeira, a literary and culinary heritage unlike anywhere else in the Americas.

That cultural richness was not incidental to the struggle for independence. It was forged in the same crucible — a place where more than a third of all Africans taken across the Atlantic passed through, where the Malê Revolt of 1835 C.E. would later remind the world that enslaved people never stopped resisting. The Malê Revolt, led by predominantly Muslim West African enslaved people, remains the most significant urban slave rebellion in Brazilian history.

Bahia’s independence did not end the suffering embedded in its history. But it did mark the close of direct Portuguese rule over the territory — and opened a chapter in which Brazilians, however imperfectly, began to define their own future.

Blindspots and limits

Brazilian independence, including Bahia’s liberation, did not extend freedom to enslaved people — a population that represented a massive share of Bahia’s labor force and cultural life. The new Empire of Brazil was constituted partly to protect the slave-owning interests of the landed class, and the men who fought for independence from Portugal often had no intention of fighting for the emancipation of the people who worked their land. July 2 is rightly celebrated, but the full account of who paid for that celebration — and who was excluded from its benefits — belongs in the same sentence.

Historians also note that the exact sequence and significance of events in 1822 C.E. and 1823 C.E. has sometimes been flattened in popular memory, with the Grito do Ipiranga overshadowing the longer, harder struggle that made independence real on the ground in Bahia. The Library of Congress collections on Brazilian history preserve primary sources that complicate the tidy narrative of a single heroic declaration.

Read more

For more on this story, see: Wikipedia: Bahia

For more from Good News for Humankind, see:

About this article

  • 🤖 This article is AI-generated, based on a framework created by Peter Schulte.
  • 🌍 It aims to be inspirational but clear-eyed, accurate, and evidence-based, and grounded in care for the Earth, peace and belonging for all, and human evolution.
  • 💬 Leave your notes and suggestions in the comments below — I will do my best to review and implement where appropriate.
  • ✉️ One verified piece of good news, one insight from Antihero Project, every weekday morning. Subscribe free.

More Good News

  • African children smiling, for article on measles vaccination Africa

    Nearly 20 million measles deaths averted in Africa since 2000

    Measles vaccines in Africa have prevented an estimated 19.5 million deaths since 2000 — roughly 800,000 lives saved every year for nearly a quarter century. A new WHO and Gavi analysis credits steady investment in cold-chain systems, community health workers, and political will, with coverage for the critical second measles dose climbing more than tenfold over that stretch. This year, Cabo Verde, Mauritius, and Seychelles became the first sub-Saharan nations to officially eliminate measles and rubella, a milestone once considered out of reach. The story is a powerful reminder that global health progress, though uneven, compounds quietly over decades —…


  • Trans pride flag during protest, for article on Romanian trans rights

    Romania finally recognizes trans man’s identity in landmark E.U. victory

    Romanian trans rights took a real leap forward this week, as courts finally ordered the government to legally recognize Arian Mirzarafie-Ahi as male — a recognition the U.K. granted him back in 2020. For years, he lived with two identities depending on which border he crossed, until his case climbed all the way to the E.U.’s top court and came home with a binding answer. That ruling now obligates every E.U. member state to honor gender recognition documents issued by another. It’s a quiet but powerful shift: transgender people across Europe gain stronger footing not through new laws, but through…


  • Old-growth tree, for article on Tongass rainforest logging ruling

    Alaska judge permanently shields Tongass old-growth forests from logging

    The Tongass National Forest just won a major day in court, with a federal judge ruling in March 2026 that the U.S. Forest Service is not legally required to ramp up logging to meet timber industry demand. The decision protects the world’s largest temperate old-growth rainforest — home to roughly a third of what remains of this ecosystem globally, along with wild salmon runs, brown bears, and trees older than 800 years. Tribal nations, fishing crews, and tourism operators stood alongside federal defenders in the case, a reminder that the forest’s value reaches far beyond timber. Wins like this give…



Coach, writer, and recovering hustle hero. I help purpose-driven humans do good in the world in dark times - without the burnout.