Red Bull's Daniel Ricciardo took a sensational second career win at the Hungaroring in a chaotic, incident-strewn Hungarian Grand Prix.
Fernando Alonso took a tenacious second place on shot tyres, followed home by Lewis Hamilton who drove through the field after starting from the pits.
PRACTICE AND QUALIFYING
Many of the drivers struggled on the hot, slippery Hungaroring, the Pirelli tyres having trouble coming to terms with the rarely used surface. Hamilton was quickest in all three sessions.
For the second weekend in a row, Hamilton's came unstuck in qualifying and again, through no fault of his own. Very early in Q1, he felt the brakes go away and he arrived in the pitlane entry with the rear of his car on fire - he hadn't even put in a time.
Rosberg almost put himself out after running wide at a suddenly wet turn one, but McLaren's Magnussen did the job right, sliding off at speed and punching the tyre wall.
The race director threw the red flags and there was a short pause before Rosberg duly took pole on a dry track.
Sadly for Ferrari's Kimi Raikkonen, he was outqualified by the man who would take his seat, Jules Bianchi and he wouldn't progress to Q2.
The Williams of Valtteri Bottas very nearly beat Vettel to best of the rest while Daniel Ricciardo took fourth.
Magnussen and Hamilton chose to start from pitlane, the track damp from morning downpours and plenty of mist and threatening clouds.
Daniil Kvyat was unable to get going, telling his team that the engine switched off, so he was wheeled off the track as Rosberg led the grid around with everyone on intermediates.
The race got going without further incident despite a huge rooster tail of spray. Bottas got a great start and stayed out of the water and took second from Vettel.
Vettel briefly camed under attack from Alonso, but regained third while Button mugged Ricciardo. Massa fell to eighth.
Hamilton fell off the road at turn two, but got away with it, despite losing a ton of time.
On the second lap Alonso misjudged turn one and nearly went into Vettel as well as off the track but avoided both potential calamities and stayed ahead of Button.
By lap four, Rosberg had stretched out a lead of almost seven seconds as behind him Vettel harrassed Bottas. DRS had been enabled as the track dried, but the Williams' straightline speed kept the Finn out of the world champion's clutches.
Hamilton's woes continued as his rebuilt car gave him cause to complain, the team hoping to hold off his first stop until the predicted rain arrived.
His engineer drily noted he was still going very quickly, setting best sector times. He soon passed Kimi Raikkonen.
It wasn't plain sailing for Rosberg, however, who slid wide at turn. There was no sailing for Marcus Ericcson who wiped both ends from his Caterham at turn three, bringing out the Safety Car, but the top three were already past the pit entry.
A number of cars dived into the pits behind them, including Ricciardo. Red Bull fitted slick tyres, but, puzzlingly, McLaren fitted new intermediates to Button's car. Button's crew had a problem with his right rear and then released him into the path of a Toro Rosso.
Rosberg pitted the following lap, with Massa and Alonso, leaving Daniel Ricciardo in front.
Rosberg's right rear began smoking and as the Safety Car was about to return to the pits, Romain Grosjean managed to crash between turn three and four.
The rain didn't come for the Safety Car to leave the track and Ricciardo surged away from Button. But the McLaren was on the right tyre for the moment and he was able to reel in the Red Bull and get moving, for a short while at least.
Perez fell off the road allowing Vettel through while Hamilton found himself in a staggering ninth place behind the German.
Rosberg had his hands full with the intermediate-equipped McLaren of Magnussen - he tried to pass but the Dane held firm, allowing Vergne by.
Vettel immediately set to work on Rosberg who was still very keen to go past Vergne, the two nearly touching as they both went into turn one all locked up.
Button's lead was short-lived as he came in to switch to slicks, leaving Ricciardo to retake first position.
Hulkenberg threw his car off the track at the final turn while trying pass Perez. The German walloped Perez and then the wall, Perez having already been cut up and receiving damage from Hulkenberg's compatriot Vettel.
Maldonado then drove into the Marussia of Bianchi at turn one, bringing both cars into the pits.
The battle from Vergne in fourth to Hamilton in seventh raged over many laps, but the participating cars were very well matched. Hamilton and Vettel had the biggest battle, both of them running into minor grief with overheating front brakes.
Meanwhile up front, Daniel Ricciardo had a six second lead with 48 laps to go. It didn't last long, however, as the much-tagged Force India of Perez had a huge crash on the main straight.
The Mexican ran wide coming out of the final turn and when he found grip was pointing at the pit wall, which he hit with some force.
Ricciardo pitted as did Massa and Bottas together, leaving Alonso in the lead behind the safety car. Kamui Kobayashi's car finished its race during the safety car period.
The green flag flew on lap twenty seven and the field completed a few laps without drama. Rosberg set to work on Jean-Eric Vergne but spent several laps attempting to pass the Toro Rosso.
Just as Rosberg pitted on lap 33, Sebastian Vettel had a huge moment, spinning on the main straight and nearly punching the wall as Perez had. This let Hamilton through and he pitted the following lap, his team expecting him to run to the end on those tyres.
Hamilton fired past Vergne after a multi-corner attempt to past, putting himself into second by going around the outside at turn four but trouble was brewing in the form of a hot seat.
Rosberg muscled his way past Bottas on lap thirty-eight, needing to press on with fresh tyres after his slow stop.
Alonso pitted from the lead on lap thirty-nine, dropping to fifth behind Raikkonen on a new set of soft tyres. He had to push hard as Hamilton stretched his tyres for a few more laps.
He returned to the track ahead of Rosberg, fifth behind Daniel Ricciardo.
Mercedes asked Hamilton to allow Rosberg through but no help from the Briton was forthcoming.
Rosberg complained, but an unrepentant Hamilton stayed far enough ahead, taunting his rival to come closer via the radio, saying, "I'm not slowing down for Nico."
Ricciardo pitted on lap fifty-five after his tyres suddenly went over the cliff, allowing Alonso to regain three seconds of a fifteen second gap.
Rosberg pitted from behind Hamilton on lap fifty-seven and he returned to the track in sixth. He grabbed seventh from Raikkonen and then Massa's sixth in short order.
Ricciardo began to close on Hamilton at a rapid rate on much newer rubber with ten laps to grab the win. Alonso was ahead of Hamilton in the lead and under huge pressure from the Mercedes.
Ricciardo nearly got by in lap sixty-five with a huge move around the outside, but he wisely backed out of it as he ran wide. Ricciardo found his way past the next lap, again around the outside after forcing Hamilton into a mistake.
He immediately got to work on Fernando Alonso with three laps remaining and simply drove past on the main straight and braked incredibly late.
The Ferrari driver then had his former teammate to deal with who himself had his current, angry teammate bearing down on him.
Alonso's tyres were thirty-eight laps old but was still keeping Hamilton behind. Rosberg arrived on Hamilton's gearbox at the beginning of the final lap. Rosberg attacked but was rebuffed by Hamilton.
Ricciardo took the flag at the end of a spectacular race having driven a perfect race, handling strategy and weather changes in his stride. He remains the only non-Mercedes driver to win in 2014.
"This win feels as good as the first," he beamed on the podium.
"To have to pass guys again to win the race, as I did in Canada, makes it a lot more satisfying, knowing that we did have a bit of a fight on our hands - you beauty!"
"In this environment now, I feel I am a very different driver and in a way a different person, a different sportsman than last year. I've got more belief in myself and I definitely feel like I belong here now," he added.
Formula 1 returns in a month at the Belgian Grand Prix at the end of the summer break.
- Daniel Ricciardo - Red Bull-Renault - 1h53m05.058s
- Fernando Alonso - Ferrari +5.2s
- Lewis Hamilton - Mercedes +5.8s
- Nico Rosberg - Mercedes +6.3s
- Felipe Massa - Williams-Mercedes +29.8s
- Kimi Raikkonen - Ferrari +31.4s
- Sebastian Vettel - Red Bull-Renault +40.9s
- Valtteri Bottas - Williams-Mercedes +41.3s
- Jean-Eric Vergne - Toro Rosso-Renault +58.5s
- Jenson Button - McLaren-Mercedes +1m07.2s
- Adrian Sutil - Sauber-Ferrari +1m08.1s
- Kevin Magnussen - McLaren-Mercedes +1m18.4s
- Pastor Maldonado - Lotus-Renault +1m24.0s
- Daniil Kvyat - Toro Rosso-Renault -1 lap
- Jules Bianchi - Marussia-Ferrari -1 lap
- Max Chilton - Marussia-Ferrari -1 lap
- Esteban Gutierrez - Sauber-Ferrari - 33 laps
- Kamui Kobayashi - Caterham-Renault - 25 laps
- Sergio Perez - Force India-Mercedes - 23 laps
- Nico Hulkenberg - Force India-Mercedes - 15 laps
- Romain Grosjean - Lotus-Renault - 11 laps
- Marcus Ericsson - Caterham-Renault - 8 laps