Lewis Hamilton edged his Mercedes team mate Nico Rosberg on his final flying lap to secure pole position for the Singapore Grand Prix on Saturday, the Briton crossing the line just 0.007 seconds ahead of the German.
Hamilton, who trails championship leader Rosberg by 22 points with six races remaining, lapped the 23-turn Marina Bay Street Circuit in one minute 45.681 seconds after his team mate had crossed the line in 1:45.688.
"That was quite an exciting qualifying session. No one was expecting to see such much difference and how close everyone was," Hamilton told reporters.
"To end up the way it did is obviously good for our team."
Ricciardo was third fastest
Although the dominant Mercedes duo faced a stiffer challenge from Red Bull and Ferrari in practice and the first two qualifying sessions, the front-row lockout is the seventh of the season at a track where overtaking is notoriously difficult.
Daniel Ricciardo was third fastest in 1:45.854 as Red Bull took both spots on the second row with the Australian's team mate and three-times Singapore winner Sebastian Vettel clocking 1:45.902 to claim fourth on the grid.
Ferrari's Fernando Alonso was fifth fastest, just ahead of Felipe Massa, whose Williams lacked speed the entire weekend before the Brazilian suddenly found some lightning pace in the final qualifying session.
‘It’s is going to be an interesting race’
The pole was Hamilton's sixth of the season and 37th overall but when he made a big mistake on the apex of Turn One on his final qualifying lap, first place looked a long shot with the top six cars separated by just three tenths of a second.
The Briton knuckled down and made up for the error, pushing to the limit under the floodlights as he continues to take the title fight to his team mate in their season-long battle for supremacy.
"I locked up and lost a bit of time," the 2008 world champion added. "I just kept going and it got better and better.
"I think tomorrow is going to be an interesting race. Looking after these tyres is not easy but I think it will be a great race to watch with a lot going on."
Ferrari's Kimi Raikkonen was seventh fastest, although a mechanical problem prevented the Finn from setting a second quick lap in final qualifying as Valtteri Bottas (Williams), Kevin Magnussen (McLaren) and Daniil Kvyat (Toro Rosso) completed the top 10 on the grid.
‘Lewis did a good job to get pole’
Rosberg was happy to secure another front-row grid position but was left ruing just how close he had been to claiming pole.
"When I think back at the lap, 7,000ths of a second is nothing," the German lamented.
"That's the way it is. Lewis did a good job to get pole. Second place is ok, first will be better but it's a long race ahead."
Ricciardo has won three times this season but has yet to secure a pole position in his maiden campaign at Red Bull with the Australian encouraged by his performance around the 5.065km Singapore street circuit.
"For such a long lap its amazing how close we are," he said. "It's going to be a fun race tomorrow."