Adam Lyth scored a battling century as Yorkshire pushed hard for victory over Lancashire in the Specsavers County Championship match at Headingley.
Yorkshire, replying to 123, started the day at 93 for two and had to work hard for their runs against an improving visiting attack, who restricted them to 273 all out on the stroke of tea.
Lyth notched his first four-day hundred of the season and the 22nd of his first-class career.
The Yorkshire opening batsman reached three figures after lunch off 234 balls having spent 71 minutes in the nineties and later saw Lancashire reach the close on 141 for four from 48 overs, a deficit of nine.
Lyth said: "I'm very pleased with how it's gone for me in this game. I've had a tricky few games opening the batting, but I'm really pleased to get a hundred in a Roses match and hopefully in a match-winning performance as well.
"I was delighted to get a hundred in tough conditions against a good attack. The next ball, I was disappointed to get out.
"But if we can get a couple of early wickets tomorrow, we can drive it home and get a win."
Lyth, who has a reputation for being an eye-catching stroke maker, was one of five wickets to fall in the afternoon, including three of them to the seam of all-rounder Jordan Clark.
Clark and England Lions seamer Saqib Mahmood equally shared six wickets for a Red Rose side who benefited from an increased consistency with the ball.
They also caught well, highlighted by a one-handed stunner from Ryan McLaren at second slip off the slippery Mahmood to get rid of Jack Leaning shortly before lunch.
Leaning and Lyth had shared 64 for the fourth wicket to advance the score from 120 for three. It was the first of two wickets in two balls for Mahmood just before lunch as Tim Bresnan edged to Dane Vilas at first slip, leaving the score at 178 for five in the 56th over of the innings.
Wicketkeeper Alex Davies also took a one-handed catch diving to his right to help Clark get rid of Ben Coad late in the innings.
It came two balls after Lyth was caught behind chasing a wide one from Clark in the 77th over - the next ball he faced after reaching 100 - as Yorkshire slipped to 249 for nine.
Jack Brooks was the last man out for 18, caught by Haseeb Hameed off the bowling of Tom Bailey as Yorkshire we all out for 273.
Despite their improved fortunes, Lancashire's first-innings total on day one meant they were always fighting to limit the damage. And they have a mountain to climb having lost Davies,
England Test opener Hameed, Luke Procter and captain Steven Croft in their second innings.
Davies was first to go when he was trapped lbw by Brooks, whose earlier knocked helped the hosts claim a second batting point.
Hameed was next to go, also trapped lbw for 10, when Coad struck in the 15th - 33 for two. Procter then edged Brooks to first slip in the 28th as the visitors slipped to 61 for three.
And it was 81 for four in the 33rd when a Croft edge against Ryan Sidebottom found Lyth at second slip.
Shiv Chanderpaul and Vilas then shared an unbroken 60 to ensure there was no further alarm for Lancashire.
They were faced with the first over of spin in the match when Azeem Rafiq bowled the penultimate over of the day and will begin day three on 43 and 22 not out respectively.