Kaka scored a second-half winner to earn Brazil a 2-1 victory over 10-man Ecuador in a full-blooded friendly in Stockholm this evening.
Ecuador, with eight regulars from their World Cup team, went ahead through Felix Borja but then had Luis Antonio Valencia sent off in the 29th minute.
Brazil, who began with Ronaldinho on the bench, levelled when Fred pounced on a defensive blunder just before halftime.
The former world champions extended their unbeaten run under new coach Dunga, who replaced Carlos Alberto Parreira after their disappointing campaign in Germany, to four matches.