Mercedes will start the Spanish Grand Prix from the front row after Nico Rosberg posted the fastest qualifying time ahead of teammate Lewis Hamilton on Saturday.
Hamilton had the fastest times in the first two qualifying sessions, but Rosberg just edged him out to take pole position in 1 minute, 20.718 seconds.
Three-time defending champion Sebastian Vettel will start from third spot for Red Bull ahead of Kimi Raikkonen's Lotus.
Ferrari has yet to secure a pole position this season, and it proved to be another frustrating afternoon. After good practice times, Fernando Alonso and Felipe Massa will start from fifth and sixth, respectively.
Jenson Button's misery continued as he failed to make the cut for the third session and the Briton starts back in 14th place.