Daniel Ricciardo sealed a maiden race victory by triumphing in a thrilling Canadian Grand Prix, while Nico Rosberg in second strengthened his advantage in the title race.
The Red Bull driver passed the Mercedes, which struggled with brake and power issues for almost half the race, in the final laps.
Rosberg managed to get his car to the end, however—a similar problem forced Lewis Hamilton's retirement.
Sebastian Vettel took third place from Sergio Perez with a lap to go—the Mexican's brave one-stop strategy undone by failing grip in the dying laps, and then ruined completely when Felipe Massa tried to follow Vettel through on the final lap, taking both drivers out in the process.
It meant Ricciardo's victory came under the safety car, but that will have mattered little to the Australian, who has done an outstanding job since joining Red Bull this season.
Behind the top three, there was no shortage of drama, either: a scintillating late run from Jenson Button saw him grab fourth place for McLaren, leapfrogging Nico Hulkenberg and Fernando Alonso in the process.
Valtteri Bottas, Jean-Eric Vergne, Kevin Magnussen and Kimi Raikkonen rounded out the top 10.
It may have come from Mercedes' technical issues, but the Canadian Grand Prix was a shot in the arm for F1 after a one-sided season. There were several feasible candidates to win the race in the final laps, and some imperious drives from the sport's leading names.
But Ricciardo's day in the Montreal sun was thoroughly deserved, starting from sixth place and, as he has done all season, using nous and extracting power from his car to achieve a remarkable result.