Tom Kohler-Cadmore hit a brilliant Roses century, but Lancashire still had the better of day one at Emerald Headingley.
In his first taste of Roses Specsavers County Championship cricket, Kohler-Cadmore amassed an unbeaten 105 off 130 balls, representing his second successive century after 106 in the draw against Notts at Trent Bridge last week.
The 24-year-old was central to Yorkshire’s recovery from 33-4 to 138-4, only for them to be bowled out for 209 on the stroke of tea at the start of this pivotal relegation battle.
Lancashire then reached close 105-0 from 35 overs, with Alex Davies leading the way with 57 not out.
Kohler-Cadmore dominated a stand of 105 with Jonny Tattersall (33) either side of lunch following an uncontested toss, with Kohler-Cadmore contributing 70.
The England Lions one-day star imposed himself on a Red Rose attack including the division’s two leading wicket-takers in Tom Bailey and Graham Onions, who shared seven wickets in helpful conditions.
Dropped on 44 by wicketkeeper Dane Vilas just before lunch off Onions, he played confidently on both sides of the wicket, cutting well, clipping through mid-wicket and sweeping with success against South Africa Test left-arm spinner Keshav Maharaj.
He slog swept Maharaj for his only six over deep mid-wicket after lunch.
The morning session was played under gloomy skies and floodlights before brightening up afterwards.
Yorkshire struggled against new ball seamer Bailey in particular at the start of play as he struck three times in a miserly nine-over spell.
Onions made the initial breakthrough by bowling New Zealand opener Jeet Raval as the score fell to 20-1 in the 10th over.
Bailey then had Harry Brook caught behind driving, Adam Lyth the same way pushing forwards and Gary Ballance lbw as he played to leg.
Unfortunately for Yorkshire, after the hard work of Kohler-Cadmore and wicketkeeper Tattersall, also getting his first taste of county cricket’s greatest rivalry in the Championship, Lancashire reasserted their authority from mid-afternoon onwards.
Onions, who finished with 4-76 from 21 overs, struck three times in 13 balls as the hosts slipped from 138-4 to 177-8.
He had Tattersall lbw playing to leg and Tim Bresnan and Matthew Waite caught behind, the latter down leg.
Gleeson, only the third Lancashire player in history to be making his debut for the club in a Roses match at Headingley after signing from Northants over the weekend, then claimed the last three wickets of the innings.
He yorked captain Steve Patterson in the 53rd over before Kohler-Cadmore reached his hundred off 121 balls with his 16th boundary.
By that time, Yorkshire were nine wickets down as Gleeson had Jack Brooks caught at deep square-leg hooking (187-9). Ben Coad then looped a catch to backward point.
Bailey was the pick of the visiting bowlers with 3-18 from 14.
Yorkshire, one point behind third-bottom Lancashire at the start of this fixture, were then unable to break through with the ball in a marginally extended evening session.
Davies dominated his opening stand with Karl Brown, chancing his arm at times on the way to a 73-ball fifty.
He drove Brooks on the up through the covers before offering a sharp second slip chance to a diving Lyth off Patterson on 39, with Lancashire 49-0.
Brown will begin day two on 43.