Deco sinks World Champs
Bordeaux striker Pauleta knocked the home side ahead after just ten minutes to give the Portuguese a well-deserved lead.
The South Americans found themselves level after the interval when Ronaldinho calmly scored from the penalty spot with a perfect strike from 12 yards.
With the match heading for a draw, the contest burst into life following a rare moment of petulance from Roberto Carlos.
The Real Madrid ace appeared to intentionally walk into the referee resulting in a straight red card for the experienced left back.
From the resulting free-kick Deco, a naturalised Portuguese citizen born in Brazil, stepped up and crashed in the winner past Marcos.
One piece of good news to come from the match for Brazil was Marcos Cafu earning his 121st cap for his country.
The veteran Roma full back, who has featured in three World Cup finals, surpassed Roberto Rivellino in the all-time list of Brazilian capped stars.
"It is good knowing I am in the team and am beating records set by players I grew up admiring," beamed Cafu.