Adil Rashid duly posted Yorkshire’s first century of the season and confirmed his liking for playing against Somerset.
The leg-spinning all-rounder was 84 overnight after the season’s opening day of the County Championship at Taunton and he went on to make a third successive ton against the men from the West Country.
He made 180 against them at Headingley last year, then an unbeaten 103 at Taunton later in the summer and reached 108 this time before being caught behind off Craig Overton.
Resuming on 342-5, Rashid and wicketkeeper Andrew Hodd - in for broken-finger victim Jonny Bairstow - compiled a century stand for the sixth wicket.
They had added 108 and taken Yorkshire just past the 400 mark when Hodd was dismissed for 55.
One run later, Rashid departed and Yorkshire were eventually all out for 450.
Ryan Sidebottom struck early when he bowled Marcus Trescothick for 20 with the score on 36 but fellow opener Chris Jones went to his half-century. He and Nick Compton added 91 before Liam Plunkett dismissed Compton for 32.
Surrey closed on 166-3 with Jones out for 75.