Yorkshire chased down a target of 203 for a six-wicket victory over Somerset on the final day at Headingley, but the Tykes still face relegation from Division One of the LV County Championship.
The home celebrations after their final game of the season were distinctly muted because Worcestershire, despite losing to Sussex, need to pick up only one point against Durham next week to send Yorkshire down.
Somerset, whose already slim title hopes were ended by the defeat, lost their last four second-innings wickets for the addition of only eight runs in the morning to be 132 all out.
Three of the wickets were claimed by Ryan Sidebottom, who finished with figures of 7-37 for a match return of 11-98.
With plenty of time at their disposal, Yorkshire were able to make a careful start through Joe Root (46) and captain Joe Sayers (35) as they put on 85 for the first wicket.
Somerset briefly applied some pressure with three quick wickets to reduce the hosts to 103-3 but Anthony McGrath (44) and Jonny Bairstow steadied the ship and Yorkshire eventually cruised home with 22 overs to spare.
Bairstow finished unbeaten on 53 and in the process became the only Yorkshire batsman to score 1,000 Championship runs in the season.
Yorkshire edged closer to relegation despite a battling display from Ryan Sidebottom on the third day of their clash with Somerset at Headingley.
The former England paceman stood firm in a ninth-wicket stand of 53 to help the hosts to 195 all out before grabbing four wickets as Somerset were reduced to 124-6 by the close.
However, the visitors still finished the day with a lead of 194 and Yorkshire's over rate at stumps was minus 2. If it remains in the red they will be relegated even if they do manage to grab the win they had previously needed to have any hope of staying up.
Yorkshire started the day with no wickets down but quickly slumped to 60-4 before Adam Lyth's authoritative 52 gave the home side some brief respite.
Alfonso Thomas (5-66) and Steve Kirby (3-65) continued to take wickets at regular intervals until Richard Pyrah (31) and Sidebottom (27 not out) held the visitors up.
But Sidebottom exploded into life when Somerset came out for their second innings, taking 4-34 in a furious spell of bowling either side of tea, but the batting side had recovered somewhat by the close after being reduced to 46-5.
Ryan Sidebottom grabbed four quick wickets as Somerset were bowled out for 265 on another rain-hit day against Yorkshire at Headingley.
The former England paceman produced an eight-over spell of 4-14 before Alfonso Thomas and Steve Kirby then added 50 for the final wicket.
Thomas had edged Ajmal Shahzad between wicketkeeper Jonny Bairstow and Adam Lyth at first slip and the South African made the relegation candidates pay the price for that missed chance by going on to make 49.
Earlier, Alex Barrow added just eight to his overnight total of 55 before falling to Sidebottom, who finished with figures of 4-61, while Jos Buttler progressed to 52 before departing.
After the visitors had been dismissed, Joe Root and skipper Joe Sayers safely saw out the remaining nine overs before the close.
Yorkshire failed to make the most of a double strike from Moin Ashraf as Somerset ended a rain-shortened first day at Headingley on 140-3.
The relegation-threatened Tykes, who need to win their final game to have a hope of staying up, opted to bowl first after winning the toss when play was finally able to get under way at 2.15pm.
Ajmal Shahzad struck an early blow when he removed Arul Suppiah for eight, the opener being bowled attempting to drive a full-length ball.
Chris Jones then combined with Alex Barrow to put on a second-wicket of 72 before Ashraf stuck twice in two balls, albeit in different overs.
He bowled Jones (31) with a beauty at the end of the 32nd over and then started the 34th by getting rid of James Hildreth for a duck, the right-hander paying the price for playing across the line of a straight delivery.
However Jos Buttler launched an assault which brought him nine boundaries, taking him to 43 not out from just 37 balls when the heavens opened again. Barrow was alongside him, the 19-year-old finishing up unbeaten on 55.