July 2

Bahia Achieves Independence from Portugal

182319th CenturyPoliticsLatin America & Caribbeanhighexpanded detail

After more than a year of siege and skirmishes, Portuguese troops slipped out of Salvador under cover of darkness, allowing Brazilian forces to enter the city on July 2, 1823, and complete the expulsion of loyalist power from Bahia.

Summary

Following Brazil’s declaration of independence in September 1822, Portuguese troops remained entrenched in Salvador, the capital of Bahia province. Local Brazilian forces, supported by reinforcements from other provinces and a naval blockade led by Admiral Thomas Cochrane, engaged in prolonged fighting including the Battle of Pirajá. After months of siege and supply shortages, Portuguese commander Inácio Luís Madeira de Melo ordered evacuation on the night of July 1–2, 1823. Brazilian troops entered the city on July 2 to popular acclaim. The event completed the expulsion of Portuguese loyalists from the region.

Context

Following the Liberal Revolution of 1820 in Portugal, Bahia experienced sharp divisions between Portuguese residents favoring restored colonial authority and Brazilians seeking to preserve the elevated status the province had gained when the royal court relocated to Rio de Janeiro. These tensions erupted into street clashes in Salvador during 1821, prompting the formation of rival governing bodies and the dispatch of Brigadier Inácio Luís Madeira de Melo to command Portuguese arms in the province.

Brazil’s formal declaration of independence on September 7, 1822, by Prince Pedro did little to resolve the standoff in Bahia, where Madeira de Melo’s garrison continued to hold the capital. The new Empire of Brazil therefore organized reinforcements from neighboring provinces and placed the port under naval pressure, turning a local political dispute into a sustained military campaign.

The conflict drew in foreign officers serving the Brazilian cause and highlighted the involvement of diverse social groups in Bahia, from urban militias to rural landowners, all committed to integrating the province into the independent empire.

What Happened

By late 1822 the Brazilian besieging army, reinforced by troops from Pernambuco and Rio de Janeiro and commanded on land by the French officer Pierre Labatut, had established a ring around Salvador. On November 8 the decisive Battle of Pirajá saw Brazilian units repel three Portuguese assaults, inflicting heavy casualties and securing their positions outside the city.

In April 1823 Admiral Thomas Cochrane arrived with a Brazilian squadron and imposed a tight naval blockade, cutting off food, ammunition, and fresh troops from Lisbon. Supply shortages inside Salvador grew acute over the following months, weakening the Portuguese garrison’s ability to hold out.

On the night of July 1–2, 1823, Madeira de Melo ordered the evacuation. Portuguese soldiers and civilians boarded ships and departed with portable valuables, abandoning the city. At dawn on July 2 the Brazilian Liberation Army, including units under José de Lima e Silva, marched into Salvador and was greeted by cheering crowds.

Aftermath

The departure of the last organized Portuguese force ended military resistance in Bahia and allowed imperial authorities to install a loyal provincial government. Portuguese shipping left the Bay of All Saints, and Brazilian control extended without interruption across the province’s sugar plantations and ports.

Casualties on the Brazilian side were estimated at around 150 during the campaign, while the Portuguese evacuation left Salvador intact but economically strained after months of siege.

Legacy

July 2 quickly became Bahia’s principal civic holiday, observed with parades that retrace the route taken by the liberating army through the streets of Salvador. The festival, known locally as the Festa do Dois de Julho, emphasizes the popular and multi-racial character of the struggle and stands in contrast to the more centralized commemoration of independence on September 7.

Historians view the victory as essential to Brazil’s territorial unity, demonstrating that independence would not remain confined to the central provinces and underscoring Bahia’s contribution of both military resources and political will to the new empire.

Why It Matters

Bahia’s victory ensured Brazilian independence extended across the entire territory rather than remaining partial. It became a state holiday symbolizing popular resistance and the role of diverse social groups in the independence struggle, reinforcing national unity.

Related Questions

Why did Portuguese troops remain in Bahia after Brazil declared independence?

Salvador was a major Portuguese stronghold with a large loyalist garrison under Madeira de Melo that refused to recognize the new empire.

How did the naval blockade help end the conflict?

Cochrane’s ships prevented food and reinforcements from reaching Salvador, creating shortages that compelled the Portuguese to evacuate.

What made the Battle of Pirajá important?

It was the largest land engagement of the campaign and confirmed Brazilian control of the approaches to the capital.

Why is July 2 celebrated as a holiday in Bahia?

The date marks the entry of Brazilian forces into Salvador and the final expulsion of Portuguese authority from the province.

Who were the key foreign officers serving Brazil in Bahia?

French general Pierre Labatut led the land siege, while British admiral Thomas Cochrane commanded the blockading fleet.

Explore More

Search Archive

Sources

  1. Independence of Bahia, Wikipedia. Accessed 2026-07-08.
Back to July 2