A spectacular collapse ended Yorkshire's quest for the LV County Championship title as they slumped to a four-wicket defeat on the final day against Kent at Headingley Carnegie.
The Tykes resumed on 51-1 in their second innings but lost nine wickets in just 46 minutes, including a hat-trick for Kent spinner James Tredwell.
Tredwell, the first Kent bowler to achieve the feat since Martin McCague in 1996, finished with incredible figures of 7-22 from 6.5 overs.
After seamer Dewald Nel (3-47) had accounted for Anthony McGrath (30) and Andrew Gale (2), Tredwell took centre stage.
He bowled Adam Lyth (46), had Gerard Brophy (0) stumped and - with the first ball of his next over - completed the hat-trick by having Jonathan Bairstow (9) caught at midwicket.
Tredwell went on to run through the tail to leave Kent chasing a target of just 90.
And the visitors, despite being reduced to 6-2, got across the winning line in early afternoon mainly thanks to a third-wicket stand of 62 between Rob Key and Martin van Jaarsveld.
There was further drama when Kent wobbled again - losing Key (27), Geraint Jones (0), Van Jaarsveld (44) and Alex Blake (0) before Tredwell (4no), in the company of Darren Stevens (4no), hit the winning runs.
Yorkshire came into the final round of fixtures in third place, nine points behind leaders Nottinghamshire and in need of a victory to have any chance of claiming the title.
Kent, meanwhile, have been relegated despite picking up a 22-point haul.
Warwickshire's victory over Hampshire at the Rose Bowl later in the day sealed Kent's fate and means they join Essex in playing Division Two cricket next season.
Moin Ashraf starred again for Yorkshire but adverse weather and an Alex Blake century threatened to scupper the hosts' title hopes on day three at Headingley.
Blake made an unbeaten 105 as Kent reached 302 all out after resuming on 215-6, with Ashraf returning 5-32 - Yorkshire's best bowling figures of the season.
The home side then made 51-1 before the close of play, meaning they must go on the offensive on day four in order to try and force a result that could keep them in the hunt for the Division One crown.
But drizzle, followed by a heavier period of rain, had meant that only four overs were bowled before 3.40pm.
That was enough time for Blake to bring up his half-century, and on the restart he moved past three figures for the first time in first class cricket to give Kent a batting bonus point in their battle to avoid the drop.
Meanwhile, Ashraf took two wickets in three balls before Yorkshire lost Jacques Rudolph (13) while replying, with Anthony McGrath (4no) and Adam Lyth (26no) left in the middle at stumps.
Teenage paceman Moin Ashraf kept Yorkshire in title contention with a fine bowling performance on day two against Kent at Headingley Carnegie.
Ashraf, the 18-year-old Bradford-born fast bowler making just his fourth first-class appearance, picked up 3-16 as Kent were reduced to 216-5 by the close in reply to Yorkshire's first innings of 261.
Martin van Jaarsveld hit 89 to ensure the visitors - who need to win to have a chance of avoiding relegation - remained afloat, having at one point been teetering at 142-5.
Yorkshire had earlier advanced their first innings from 205-7 to 261 all out when play got under way after an early lunch was taken to allow the groundstaff to get things ready following morning rain.
Number nine Steven Patterson finished with 39 not out, while fit-again Kent paceman Dewald Nel, making his first four-day appearance of the season, recorded career-best figures of 6-62.
Yorkshire need a win to have any chance of denying Nottinghamshire and Somerset the County Championship title.
Jonny Bairstow helped Yorkshire grab what could be a vital batting bonus point as they started their race for the County Championship title against Kent at Headingley.
Although bad light and drizzle restricted the opening day's play to 58 overs, league leaders Notts only played one over of their match at Lancashire while Somerset and Durham's game was also badly affected by conditions.
Yorkshire got more action in, although it did not start well as relegation-threatened Kent quickly reduced them to 93-5 after opting to bowl first under cloudy conditions with a helpful pitch.
Bairstow dug in though and his 62 helped the hosts reach 205-7 and claim a bonus point as they look to pinch the title ahead of Nottinghamshire and Somerset.
Dewald Nel took 4-47 for Kent, who need a win to be certain of avoiding relegation, but he could not remove Bairstow who remained unbeaten on 62 when play ended early.