Battle of Rio de Janeiro - Wikipedia
en.wikipedia.org
After defeating a French raid the previous year, the port of Rio de Janeiro was captured in September 1711 by a much larger fleet led by the experienced corsair René Duguay-Trouin and occupied by his troops until December, when they departed after receiving a ransom worth four million pounds. But what if Rio's defenses held?
The local governor was warned of the enemy fleet and mobilized a militia to defend the city, but Duguay-Trouin postponed the attack by several days in order to sail into Guanabara Bay under strong winds and pass through the fortresses protecting the city as quickly as possible. Because of this, the governor eventually thought the sighting of the raiders' ships (they were seen by local fishermen in Cabo Frio) was a false alarm and demobilized the militia he had assembled, making the city vulnerable right when the French finally attacked.
So here's the POD: Duguay-Trouin gets the weather he wants sooner, attacks Rio right away and is defeated by the local troops waiting for him.
What would happen to colonial Brazil if this humiliating defeat, and the huge indemnity that came with it, was averted? Could the capital be moved from Salvador earlier? What about the rest of the Portuguese Empire?