Valtteri Bottas edged out Mercedes team-mate Lewis Hamilton by just 0.012 seconds to dramatically claim pole position at the season-opening Austrian Grand Prix. (More Sports News)
The Finn led Hamilton after the first runs of Q3, but Bottas spun into the gravel during his second attempt, handing the six-time world champion an opportunity.
Hamilton was able to improve his time, but fell agonisingly short.
It was a qualifying session to forget for Ferrari, as Charles Leclerc had to settle for seventh place while Sebastian Vettel failed to reach Q3 and will start 11th.
Max Verstappen took third for Red Bull, with McLaren's Lando Norris impressing to ensure he will start in fourth spot on Sunday.
Fifth-placed Alex Albon will be joined by the top Racing Point, Sergio Perez, on row three, after the two drivers registered the same time.
Leclerc – who was almost a second off the pace – finished narrowly ahead of Carlos Sainz in eighth.
Lance Stroll and Daniel Ricciardo rounded out the top 10 after Vettel missed out on the shootout as he begins his last season with Ferrari.
Hamilton had topped all three practice sessions, but it was Verstappen who topped the timesheets in Q1 on Saturday.
Bottas ended up first in Q2, with Verstappen the only man to make it through on medium tyres in an interesting strategy move Red Bull will hope moves them closer to Mercedes in the race.
There was tension at the end of the second session, as Vettel failed to improve on his time and sat back in 10th as other drivers crossed the line, with Albon the man to knock him out in the final seconds.
Leclerc only just made it through and was unable to make much of an impact in Q3, with Mercedes' advantage over the rest of the pack made clear by the 0.538s gap to Verstappen in third.
Sunday's race will be the first of two consecutive events at the Red Bull Ring to kick off a 2020 season delayed by the coronavirus pandemic.
1. Valtteri Bottas (Mercedes) 1:02.939
2. Lewis Hamilton (Mercedes) +0.012s
3. Max Verstappen (Red Bull +0.538s
4. Lando Norris (McLaren) +0.687s
5. Alex Albon (Red Bull) +0.929s
6. Sergio Perez (Racing Point) +0.929s
7. Charles Leclerc (Ferrari) +0.984s
8. Carlos Sainz (McLaren) +1.032s
9. Lance Stroll (Racing Point) +1.090s
10. Daniel Ricciardo (Renault) +1.300s