Daniel Ricciardo crashed during a chaotic qualifying at the Azerbaijan Grand Prix as his difficult Formula One season continued, while Ferrari's Charles Leclerc took pole position.
The Australian carried too much speed into a corner and slammed into a barrier during the second session on a day that saw four red-flag periods.
The front of his McLaren sustained heavy damage but Ricciardo was unharmed and will line up 13th in Sunday's race in Baku.
Leclerc grabbed his second pole in a row as he edged out Mercedes star Lewis Hamilton, with a frustrated Max Verstappen third for Red Bull.
"It was just a stupid qualifying to be honest," said Verstappen, who is four points clear of Hamilton after five races.
Leclerc owed some of his time of one minute 41.218 seconds to Hamilton, whose car provided a hefty aerodynamic 'tow' down the long straight.
"I think it's going to be difficult to keep these two behind me," he added of the title frontrunners.
Hamilton has a record 100 pole positions but his placing still came as a surprise, with Mercedes struggling for pace through practice and Red Bull on top.
"This is such a monumental result for us because we've been struggling like you couldn't believe all weekend," said the Briton, who was only 11th in opening practice.
"We've moved around, made so many changes, over these two days. Just chasing our tail and it's been so difficult."
The first phase of qualifying was twice stopped, with Canadian Lance Stroll smashing his Aston Martin into the barriers at turn 15 and Alfa Romeo's Antonio Giovinazzi following minutes later.
Ricciardo then crashed his McLaren after locking up at turn three in the second phase, bringing out the red flags for the third time.
That crash left Aston Martin's Sebastian Vettel cursing his misfortune in 11th place after being denied the chance to go faster.
The final crash involved Sainz and AlphaTauri's Yuki Tsunoda.
Tsunoda's team mate Pierre Gasly starts fourth with Sainz qualified in fifth and McLaren's Lando Norris sixth on a street circuit with a reputation for drama.
Norris was summoned to stewards afterwards for failing to return to the pits immediately red flags were waved, and was handed a three place grid drop - less than the normal five - with three penalty points.
"Just chaos really," Norris said of the session.
- with Reuters