Mick Kinane claimed the Prince of Wales's Stakes on Azamour as he scored a 208-1 treble at Royal Ascot at York.
PRINCE OF WALES'S STAKES
1 Azamour 11-8f
2 Ace 7-1
3 Elvstroem 11-1
The 11-8 favourite, trained by John Oxx and owned by the Aga Khan, put in a strong late surge to win by one-and-a-half lengths.
Ace ran well to claim second, with Australian pacemaker Elvstroem finishing in third.
Dual Oaks and Breeders' Cup heroine Ouija Board trailed in nearly 30 lengths behind the winner.
Trainer Ed Dunlop said the filly was always struggling after losing a shoe in the early stages.
Kinane earlier won the Windsor Forest Stakes on Peeress (14-1), and completed his treble with Beautyandthebeast (9-2) in the concluding Sandringham Stakes.
Of Azamour, the Irish rider said: "He's a very good horse, a lovely horse to be associated with, and he's a pleasure to be around."
He said the rain-softened ground, officially described as good to firm, was cutting up and causing some runners problems.