Defending champions Brazil fought back from 2-nil down to beat the United States 3-2 and win the Fifa Confederations Cup football tournament for the third time after a hugely entertaining final in Johannesburg.
The U.S., who shocked Spain in the semi-finals, looked set for another huge upset when goals by Clint Dempsey and Landon Donovan put them 2-nil ahead at halftime.
American goalkeeper Tim Howard produced several good saves before striker Luis Fabiano took his tournament tally to five in five games when he scored just after the restart and equalised in the 74th.
Brazil captain Lucio completed the job when he rose superbly to head home an Elano corner six minutes from time.
Spain beat South Africa 3-2 to finish third.