Brazil defeated host South Africa 1-0 in the hard-fought second semi-final of the 2009 FIFA Confederations Cup in Johannesburg Thursday.
Substitute Daniel Alves scored the goal from a free kick just outside the box in the 88th minute.
It was a hard loss for the hosts, who had the backing of most of the 48,000 vuvu zela-blowing fans at the stadium, especially because they succeeded in containing defending champi on Brazil until the late goal.
Brazil, which advanced to its fourth final in the Confederations Cup, will meet the US in Sunday's final at the Ellis Park in Johannesburg.