Red Bull driver Pierre Gasly topped the second Formula 1 free practice session for the Hungarian Grand Prix, setting the fastest time before the rain came.
The 90-minute session started with rain widely anticipated, meaning teams were eager to get on track to capitalise on the dry conditions.
But they were interrupted by the session being red flagged after three minutes thanks to Alex Albon crashing his Toro Rosso at the final corner.
Albon touched the grass with his left wheels and was pitched sideways into the barrier at the right-hander, subsequently admitting it was "driver error".
After a six-minute delay, the session resumed and with very light rain sporadically falling the drivers headed out on a variety of different tyre compounds while they could still use slicks.
Mercedes driver Valtteri Bottas was the first to set a new fastest time, posting a 1m18.289s on mediums that displaced Kimi Raikkonen's effort from the initial three minutes of running.
Team-mate Lewis Hamilton eclipsed him with a lap of 1m18.110s on hards, which he subsequently lowered to a 1m17.995s.
Red Bull driver Max Verstappen then hit the front on mediums, setting a time of 1m17.909s.
But Gasly then set his fastest time, a 1m17.854s, to secure top spot shortly before the track was officially declared wet after 22 minutes when the rain intensified.
Nobody was able to improve in the rest of the session, although everyone except the eliminated Albon did run on intermediates and Carlos Sainz Jr even ran a single lap on slicks.
Verstappen held onto second place with his lap, which was 0.055 seconds slower, ahead of the two Mercedes drivers, with Hamilton ahead of Bottas.
Renault driver Daniel Ricciardo was briefly as high as second with his pace on softs before being shuffled down to fifth fastest, 0.743s off the pace.
Raikkonen ended up as the best-placed Ferrari-powered car in sixth place, ahead of the lead works car of Charles Leclerc, who used mediums for his fastest time.
Nico Hulkenberg put the second Renault eighth using softs, ahead of the similarly-shod Alfa Romeo of Antonio Giovinazzi and Daniil Kvyat's Toro Rosso, also on the red-walled tyres.
Romain Grosjean, still running the Australian GP-specification Haas, was 11th fastest on mediums, 1.195s off the pace ahead of team-mate Kevin Magnussen's upgraded version, running hards.
Sebastian Vettel ran on hards when the track was dry, ending up 13th and 1.400s off the pace - also having an off-track moment when he cut the Turn 6/7 chicane.
Sainz was best of the McLarens in 14th with a time 1.544s down on medium rubber, with Racing Point's Sergio Perez on hards three-tenths further back.
Lance Stroll also used hards to take 16th place ahead of the soft-shod Williams of George Russell, who was only two seconds off the fastest time.
McLaren driver Lando Norris lost track time early on to a minor hydraulic leak that manifested itself when he first went out, but did use mediums to set 18th fastest time.
Robert Kubica was 19th and slowest of those to set a time, as Albon had not completed a flying lap before his crash.
|1||Pierre Gasly||Red Bull/Honda||1m17.854s||-||16|
|2||Max Verstappen||Red Bull/Honda||1m17.909s||0.055s||12|
|6||Kimi Raikkonen||Alfa Romeo/Ferrari||1m18.682s||0.828s||25|
|9||Antonio Giovinazzi||Alfa Romeo/Ferrari||1m18.909s||1.055s||25|
|10||Daniil Kvyat||Toro Rosso/Honda||1m18.957s||1.103s||22|
|14||Carlos Sainz Jr.||McLaren/Renault||1m19.398s||1.544s||22|
|15||Sergio Perez||Racing Point/Mercedes||1m19.721s||1.867s||13|
|16||Lance Stroll||Racing Point/Mercedes||1m19.774s||1.920s||14|
|20||Alexander Albon||Toro Rosso/Honda||-||-||2|