David O’Meara trained his first-ever Royal Ascot winner when the 33/1 shot Louis The Pious powered down the stands' rail to win the Buckingham Palace Stakes.
And the final race of day four proved to be a memorable one for O’Meara, who also trained the third horse home, Watchable (14/1).
A small group raced on the far side in this 28-runner charge up the straight seven furlongs but the stands' side was the place to be and Tamayuz Star took them along.
Silvestre de Sousa gave the winner an uncomplicated ride, setting sail for home as they hit the two-furlong pole.
The six-year-old went a length or so clear and then beat off the challenge of the strong-finishing Horsted Keynes (8/1) to score by three-parts of a length.
Bronze Angel (10/1) took fourth, a few places ahead of favourite Russian Realm, who never really got into contention.
Pastoral Player won the race on the far side but came home several lengths behind the winner.
A jubilant De Sousa said: "That was great. I've been here for the last three days and I'm just glad to ride a winner.
"David told me he could run a big race. He just told me to switch him off and come with a late run.
“I think I got there a bit too soon and he was just looking around, but I'm absolutely delighted.
"I felt they went pretty quick and he gave me a great ride. He was off the bridle the whole way but he was comfortable at his speed.
"When I asked him to quicken up, he picked up too well, but he kept rolling and, thank God, he got there."
O'Meara added: "I'm absolutely delighted. We ran two in the race and the other guy (Watchable) has finished third.
"Danny (Tudhope) chose Watchable, but Silvestre has been connected with us for quite a while now, even before he started riding for Godolphin.
“He's a world-class jockey, gave him a great ride, and I'm delighted for him and the owner Frank Gillespie.
"We've come here the last couple of years with runners and horses have run well, without even being placed. To have a winner today is great.
"Louis The Pious has got two ways of running. On his day, he can be very good. He was second in last year's Ayr Gold Cup, so he's got a lot of ability if he gets out of bed the right side."