Yorkshire finally ended their wait for a home win in this season's LV= County Championship at the last opportunity, beating Glamorgan by eight wickets with a day to spare.
Glamorgan were in a shaky position when they resumed on 27-2, still 45 behind, and quickly lost three wickets for the addition of 19 runs.
Ben Wright and Jim Allenby attempted a gallant fightback and put on 55 before the former fell lbw to Anthony McGrath's medium pace for 21.
Allenby went on to make 48 until Moin Ashraf (3-42) bowled him and despite a breezy 36 from Graham Wagg, the Welsh county were bowled out for 182, Steve Patterson claiming four wickets for the second time in the match.
Left to chase just 111, Adam Lyth made sure the White Rose county didn't hang around with an even 50 that took just 60 deliveries.
He dominated an opening stand of 63 with Joe Root and although both fell within the space of five balls, Phil Jacques (28 not out) and Gary Ballance (11no) steered the hosts over the finishing line.
Yorkshire now travel to Chelmsford for their final game of the summer against Essex next week looking to wrap up promotion ahead of the club's 150th anniversary in 2013.
Steven Patterson struck twice late on day two to bag Yorkshire the momentum in their County Championship Division Two clash with Glamorgan at Leeds.
In reply to the visitors' first innings of 272, Yorkshire racked up a first innings total of 344 and left Glamorgan in trouble on 27-2 by stumps.
Adam Lyth was the star of the day with the bat - blasting 14 boundaries on his way to 95 before John Glover trapped him in front of the stumps.
Andrew Gale (55) was the only other significant contributor for Yorkshire as four wickets for Jim Allenby limited the damage - but the Welsh side were still left with a deficit of 62.
Patterson was razor tight to stifle the opening batsman William Bragg and Nick James - and he was rewarded when he located the latter's edge and sent his replacement Glover back with the very next ball.
Yorkshire saw their promotion charge temporarily hit the buffers before they hit back on day one against Glamorgan at Headingley.
The home side put their bottom of the table opponents into bat on the first day of their Division Two match only to see the Welsh county cruise to 124-0.
However, the Yorkshire attack eventually found a cutting edge, bowling out their opponents for 272 shortly before the close.
Having won the toss, Andrew Gale's decision to field seemed was open to question as Glamorgan openers Will Bragg and Nick James settled in quickly, the century stand arriving just before lunch.
It was the 38th over before Ryan Sidebottom made the breakthrough, having James caught by wicketkeeper Andy Hodd for 38.
Hodd then denied Bragg his century, the left-hander edging Steven Patterson having made 92 from 134 deliveries.
Yorkshire stepped up the pressure after tea, dismissing the visitors with six overs of the day remaining, Patterson finishing with figures of 4-49.
Adam Lyth (5) and Joe Root (9) saw the hosts through to the close - and Yorkshire will be looking to push on with the fine weather set to continue for the rest of the week.