Ferrari’s Fernando Alonso sent his home crowd into raptures by beating Lotus driver Kimi Raikkonen to win the Spanish Grand Prix.
He took his second victory of the year and moved into third place in the championship with a four-stop strategy while Raikkonen did three.
Ferrari’s Felipe Massa was third and Red Bull’s Sebastian Vettel fourth.
Mercedes’ Nico Rosberg and Lewis Hamilton faded to sixth and 12th after starting from the front row.
The Mercedes cars struggled with high tyre usage, their bugbear for several years, and were unable to hold onto their positions at the head of the field.
Rosberg, who did three stops, managed his tyres better than Hamilton, who made four but was unable to sustain a competitive pace.
Alonso laid the foundations for his victory by moving up from his fifth place on the grid to third on the first lap with a superlative passing move on the first lap, overtaking both Raikkonen and Hamilton around the outside of the fast Turn Three.
Alonso trailed Rosberg and Vettel until the first pit stops, during which he leapfrogged Vettel, and took the lead from Rosberg into Turn One at the start of lap 13.
From then on, the question was whether Alonso could build enough of a lead to enable him to make an extra pit stop and still beat Raikkonen.
He did so comfortably, rejoining from his third stop on lap 36 just five seconds behind Raikkonen, both with one stop remaining and Alonso on much fresher tyres.
It took Alonso only two laps to catch and pass Raikkonen, from where the Spaniard cruised to the 32nd victory of his career, moving him ahead of Nigel Mansell into fourth place in the all-time winners’ list behind Michael Schumacher, Alain Prost and Ayrton Senna.
It also significantly boosted his championship hopes, closing his deficit to leader Vettel from 30 to 17 points. Raikkonen stays second, just four points behind the German.
Hamilton slipped from third to fourth place in the championship but is 22 points behind Alonso and only five ahead of Massa.
After losing the lead to Alonso, Raikkonen was left comfortably ahead of Massa, who made a bid to close in on the Finn before Raikkonen responded with six laps to go to show he was in control.
Vettel appeared for a while to be trying the same three-stop strategy as Raikkonen, stopping at similar times to the Finn in the early part of the race.
But without the race pace to challenge for the lead, he made a fourth stop only three laps after Alonso’s and had to settle for fourth.