Ed Dunlop's Snow Fairy produced an amazing turn of foot to win the Queen Elizabeth II Commemorative Cup for the second year in succession.
Ryan Moore's mount looked to have plenty to do turning into the straight as she was at least 10 lengths behind the runaway leader Shimmei Fuji with a dozen horses still in front of her.
In front of a huge crowd at Kyoto in Japan, last year's winner began to stay on strongly but it looked as if a place was going to be the best she could hope for with a furlong to run.
However, running on the fast ground she so loves, the four-year-old quickened up in fantastic style to burst through and beat Aventura by a neck with Apapane third.
Snow Fairy was drawn widest of all in stall 18, which made her performance even more meritorious.
Unfortunately William Haggas' Oaks winner Dancing Rain could never get in a blow.
Johnny Murtagh decided to hold her up in the rear from stall 14, rather than adopting her front-running tactics, but she never threatened at any stage.
Dunlop's filly had been without a win this season but had run some fine races in defeat including the in the Prix de l'Arc de Triomphe and the Irish Champion Stakes.
The result will be more than compensation for the Newmarket handler who was beaten by a nostril in the Melbourne Cup when Red Cadeaux lost out narrowly to Dunaden.
Moore is now unbeaten in five races on board the durable Snow Fairy, who has won well over €3million in prize money.
"She's a very talented filly and she tries very hard, I'm very lucky to be involved with her," said Moore.
"Snow Fairy always quickens very well. The pace was stronger than I thought it would be and we were further back than I hoped to be positioned.
"She has a lot of class and a good turn of foot and she picked up very well in the straight.
"She's a very talented horse. It's great to ride a filly good enough to come here, the racing in Japan is getting stronger every year."
Dunlop was naturally delighted and tweeted: "Wow cannot believe it! Truly great filly, unbelievable ride and outstanding performance by my team, our luck has hopefully changed!"
Snow Fairy was bitten by an insect five days ago and there had been a slight doubt about her participation.
"We thought we had no chance two furlongs out, she was so far back. It was an unbelievable ride by Ryan," added Dunlop.
"She was drawn 18 and there was the fact she had a problem five days ago and wouldn't have run.
"Five days ago she was three out of five lame on her right hind where the infection was very bad.
"The Japanese vets were fantastic. She had antibiotics, pain relief and huge credit must go to my staff who have looked after her.
"I was very downbeat after the problem that she would be able to win and today is one of the proudest moments we will ever have with her.
"No one had won this race from abroad and now she's won it twice.
"We had Ouija Board and now we have her. I can't tell you how much we appreciate having her.
"Ryan said she had a hard enough race and blew up 50 yards out. She will go to Hong Kong next. We will decide which race there later on.
"She will stay in training next year as long as she's OK. We're very lucky.
"It was a great ride by Ryan. He's ridden her five times, he's won five Group Ones on her. We're very grateful to him," the Newmarket trainer told At The Races.