(AP) James Hinchcliffe overtook Takuma Sato of Japan on the last turn to win IndyCar's Sao Paulo 300 for his second career victory on Sunday.
The Canadian moved from third to second with three laps to go and, after the long back straight, moved inside Sato to take the lead just a few yards from the finish line at the Anhembi street track.
American Marco Andretti was third.
Sato, coming off his first career victory two weeks ago in Long Beach, drove in too hard for the final turn and gave space for Hinchcliffe to get past.
Sato had successfully defended the lead from Hinchcliffe on two other occasions in the final laps but couldn't hang on at the end.
Despite losing the race, Sato leaves Brazil with the lead in the drivers' standings. Andretti moved to second in the championship standings.
Helio Castroneves, who led coming into his home race, had an incident-filled race and finished 13th to drop to third in the championship.
Castroneves' Penske teammate Will Power, who won the previous three races in Brazil but started only 22nd after a mishap in qualifying, retired on lap 19 because of an apparent gear shift problem.
Spaniard Oriel Servia was fourth and American Josef Newgarden, who started last after changing an engine before the race, managed a fifth-place finish.
Pole-sitter and current IndyCar champion Ryan Hunter-Reay ran up the front for a while but finished only 11th. Andretti teammate and front-row starter EJ Viso of Venezuela was sixth.
Tony Kanaan's impressive weekend despite an injured right hand ended in disappointment when he ran out of fuel before a pit stop on lap 51 while running second.
After stopping on top of the cross-finish line, he put both hands on top of his visor in disbelief as fans packing the stands at the Sambadrome front straight loudly applauded. He finished the race in 21st place, three laps back.
Follow Tales Azzoni at http://twitter.com/tazzoni