Steve Patterson struck three times in the 86th over, all bowled with the new ball, as Yorkshire fought back superbly against Surrey when play finally got underway following first day rain at Guildford.
Stand-in captain Ben Foakes, opener Mark Stoneman and Specsavers County Championship debutant Jamie Smith had all posted fifties to put the defending champions in a healthy position at 265-4 midway through the second evening on a slowish pitch.
Six balls later, however, they were 265-7, with Foakes and Smith gone for 62 and 56. They closed on 290-8 from 95 overs, with bad light forcing the loss of nine overs from 6.05pm.
Patterson took the new ball with Duanne Olivier off the field with a groin injury and got it swinging back into the right-handers as he also bowled Will Jacks shouldering arms.
The Yorkshire captain was on a hat-trick having removed Foakes and Jacks with the first two balls of the over, and he finished with 4-71 from 24 overs.
Earlier, Jordan Thompson (2-41 from 19 overs) impressed with a wicket either side of lunch on his first-class debut.
Thompson, 22, had only previously played white ball cricket for Yorkshire.
But he has earned the all-rounder’s spot vacated by David Willey (family reasons) this week following some good form with both bat and ball in the second team and for Pudsey St Lawrence.
And his confidence was evident as his bustling seamers challenged Surrey’s top order after Patterson had opted for an uncontested toss.
Surrey started strongly, with Mark Stoneman and South African Test opener Dean Elgar (24) sharing 78 inside 24 overs for the first wicket as they navigated some early swing.
But Thompson’s twin strikes helped reduce the defending champions to 147-4 midway through the afternoon.
Patterson made the initial breakthrough when Elgar, elevated up Surrey’s order due to a back injury for captain Rory Burns, was caught at point by Dom Bess.
Stoneman was the first of Surrey’s three fifty makers, hitting eleven boundaries in 61. But he was Thompson’s memorable first victim.
Thompson, bowling from the opposite end to Patterson – the Railway End, had ex-England opener Stoneman caught behind as he edged behind pushing forwards, leaving the score at 98-2 in the 29th.
Surrey reached lunch at 117-2 from 34 overs, only to lose two wickets inside the first 14 overs of the afternoon as they fell to 147-4 in the 49th.
Ben Coad trapped Ryan Patel lbw playing to leg for 19 – 142-3 in the 45th – during a superb seven-over spell which cost him only 11 runs immediately after lunch.
Thompson then struck with the first ball of his second spell, having replaced Coad at the Railway End, as Scott Borthwick (21) edged an attempted drive to Adam Lyth at second slip.
At that stage, Yorkshire were back in business in a match which started late due to torrential rain throughout Monday.
But stand-in skipper Foakes and 18-year-old Smith shared 118 for the fifth wicket in 37 overs either side of tea.
Smith, who has only just finished his A Levels, has already debuted in first-class cricket, unlike Thompson, whose only previous first-team experienced has come in limited overs cricket.
In fact, Smith hit 127 against the MCC in March’s champion county fixture in Dubai.
Foakes reached 50 off 82 balls and Smith off 104, only for them both to fall to the excellent Patterson, bowling with the new ball.
Coad finished the day by trapping Rikki Clarke lbw – 285-8 in the 94th over.
What they said…
Jordan Thompson (Yorkshire all-rounder on debut)
“I was told on Saturday that I would be playing, it was a bit of a surprise to be honest but when I came on to bowl I just treated it like a game of cricket and tried to stick to what I have done well in the second team for the last few weeks, and play as I have done to get into the side.
“I felt I did pretty well and to get two Test batsmen out was a great feeling.
“We feel we have come out on top. They were 265 for 4 at one stage then Patto (Steve Patterson) got those three wickets in an over which massively changed things. Hopefully we can get the last two wickets tomorrow and then bat well.”
Mark Stoneman (Surrey batsman made 61)
“We could be greedy and say someone could have gone on and made a hundred from the starts that we had but having been put in we have come out with a pretty strong day and bounced back after a disappointing performance against Somerset last week.
“I felt pretty good but I have felt in good nick recently without getting the runs so it was pleasing to make a contribution.
We had some good performances in tricky conditions. Jamie Smith looks a special player for the future. He doesn’t over-hype situations and played some really good shots.
“Hopefully we can build on today and make some inroads with the ball. It would be nice to get another batting point tomorrow and then we’ll let our seamers run in and do their thing.”