The 2017 Hungarian Grand Prix (formally the Formula 1 Pirelli Magyar Nagydíj 2017) was a Formula One motor race that took place on 30 July 2017 at the Hungaroring in Mogyoród, Hungary. The 2017 event was the 32nd time that the race has been run as a World Championship event since the inaugural race in , every single time at the Hungaroring. The race was won by Sebastian Vettel, ahead of Kimi Räikkönen and Valtteri Bottas. Background Ferrari driver Sebastian Vettel entered the round leading the World Drivers' Championship by one point ahead of Mercedes's Lewis Hamilton. In the World Constructors' Championship, Mercedes led Ferrari by fifty-five points. Williams's Felipe Massa was taken ill after Practice 3. Massa had been unwell and dizzy on Friday but was certified as fit to compete in Practice 3 by the medical staff. Massa did not feel any better during Practice 3, and his seat was taken by Williams reserve driver Paul di Resta for qualifying and the race. Practice Red Bull's Daniel Ricciardo went fastest in first practice, setting a time of 1:18.486. He was followed by the Ferrari of Kimi Räikkönen and the Mercedes of Lewis Hamilton in second and third. In second practice, Ricciardo again set the fastest time followed by Vettel and Bottas. Saturday's third and final practice was topped by Vettel, with Räikkönen second and Bottas third. Vettel set the quickest time of all three practices with a 1:17.017. Qualifying In the first segment of qualifying, Williams reserve driver di Resta made his first start since the 2013 Brazilian Grand Prix and quickly got up to speed with little prior practice. Di Resta's only experience in a hybrid F1 car consisted of 10 laps in a 2014-spec car and some laps in the simulator prior to the Australian Grand Prix. Di Resta qualified 19th in a car with Massa's settings, a performance that was described as "unbelievable" by Mercedes boss Toto Wolff. Di Resta later admitted that he was "scared, nervous, [and] anxious" about how he would perform given his lack of experience. In the third segment of qualifying, Sebastian Vettel secured pole position with a time of 1:16.276. His teammate Kimi Räikkönen secured second place, thus giving Ferrari its first qualifying 1–2 in Hungary since 2004. Mercedes locked out the second row on the grid, Red Bull locked out the third row on the grid, and McLaren-Honda locked