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

  • Rows of solar panels in a Chinese desert reflecting China wind and solar capacity growth under the Five-Year Plan clean energy targets

    China plans to double its already massive clean energy supply by 2035

    China’s new climate pledge to the United Nations sets a target of 3,600 gigawatts of wind and solar power by 2035 — more than the entire electricity-generating capacity of the United States today, and roughly double what China has already built. The commitment is woven into the country’s next Five-Year Plan, which directs state banks, provinces, and manufacturers to move in the same direction. Because China makes about 80% of the world’s solar panels, every factory it scales up makes clean energy cheaper for buyers in Africa, Southeast Asia, Latin America, and everywhere else. That ripple effect is what makes…


  • Medical researcher in a lab examining vials related to asthma and COPD treatment and mRNA vaccine development, for article on benralizumab injection

    Doctors hail first breakthrough in asthma and COPD treatment in 50 years

    Benralizumab, a single injection given during an asthma or COPD attack, outperformed the steroid pills that have been the only emergency option since the 1970s. In a King’s College London trial of 158 patients, those who got the shot had four times fewer treatment failures over 90 days, along with easier breathing and fewer follow-up visits. Because steroids carry real risks with repeated use — diabetes, osteoporosis, and more — a genuine alternative could change daily life for millions of people who live in fear of the next flare-up. After a half-century of stalled progress on diseases that claim 3.8…


  • A nurse in a rural Mexican clinic checks a patient's blood pressure, for an article about Mexico universal healthcare

    Mexico launches universal healthcare for all 133 million citizens

    Mexico universal healthcare is now officially a reality, with the country launching a system designed to cover all 133 million citizens through the restructured IMSS-Bienestar network. Before this reform, an estimated 50 million Mexicans had no formal health insurance, with rural and Indigenous communities bearing the heaviest burden of untreated illness and medical debt. The new system severs the long-standing tie between employment and healthcare access, providing free consultations, medicines, and hospital services regardless of income. If implemented effectively, Mexico’s move could serve as a powerful model for other middle-income nations still navigating fragmented, inequitable health systems.



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