German Sandro Cortese held off three Spaniards to take pole position for their home grand prix at Jerez.
The Racing Team German rider knocked Nico Terol from the top in the closing minutes by 0.209sec in the closing minutes, with Terol's Bankia Aspar team-mate Hector Faubel completing the front row in third.
The pole was the third of Cortese's career and, after finishing second to Terol in Qatar, he is sure to be targeting his first grand prix victory in Sunday's Spanish Grand Prix.
Efren Vasquez will head the second row, alongside Red Bull Ajo team-mate Johan Zarco, but both were over one-second from Cortese's pole time.
Mahindra's Danny Webb lost much of the session due to technical troubles. The Englishman eventually got back out with twelve minutes to go and set a time quick enough to qualify 19th.
Qualifying - Jerez:
1. Cortese (Aprilia) 1m 47.399s
2. Terol (Aprilia) +0.209s
3. Faubel (Aprilia) +0.570s
4. Vasquez (Derbi) +1.014s
5. Zarco (Derbi) +1.202s
6. Salom (Aprilia) +1.392s
7. Folger (Aprilia) +1.400s
8. Oliveira (Aprilia) +1.426s
9. Viales (Aprilia) +2.064s
10. Gadea (Aprilia) +2.073s
11. Kent (Aprilia) +2.154s
15. Mackenzie (Aprilia) +2.578s
19. Webb (Mahindra) +2.770s
27. Stafford (Aprilia) +3.793s