Star Of Seville scrambled home to hand trainer John Gosden a fourth win in the Tattersalls Musidora Stakes at York.
Just like when scoring on her reappearance at Newbury, the daughter of Duke Of Marmalade was sent straight into the lead in the mile-and-a-quarter contest by Frankie Dettori.
As the race entered the closing stages, the 4-6 favourite looked to have put the race to bed when kicking a couple of lengths clear from the front.
But just as Star Of Seville appeared to have done enough, Aidan O'Brien's Together Forever, who was giving away 4lb to her rivals, started to eat up the ground inside the final furlong and a half under a determined Ryan Moore.
The task proved to be just beyond last year's Fillies' Mile winner, with Star Of Seville clinging on to victory by a head, securing her ticket to the Investec Oaks on June 5.
Dettori said: "I think she just lost concentration and I was waiting for the others a bit. I was worried as well, but then she pulled her neck out again. Even though she is good, she is a bit quirky, like most good ones are.
"I am sure she will get a mile and a half, as she is very good and very talented.
"There is plenty to come. John has only used this as a prep race - the big one comes in three weeks' time."