Yorkshire played like true champions at Headingley to take their final LV= County Championship match to the last ball, but Somerset clung on for a draw.
The visitors' final pair of Jamie Overton and Alfonso Thomas were left clinging on desperately after they had earlier appeared to be in with a great chance of winning.
Set 182 to win off 44 overs, Somerset cantered to 62 for two but then collapsed to 151 for nine.
Somerset embarked on their chase following an early tea and it was Yorkshire who drew first blood as Johann Myburgh cut Ryan Sidebottom to backward point, where he was brilliantly caught by Richard Pyrah flinging himself to his left.
Skipper Marcus Trescothick attacked strongly and Adil Rashid conceded 15 in his first over, including two fours through midwicket to Nick Compton and another to Trescothick.
Having given away 24 from 10 balls, Rashid atoned by sending back Trescothick, whose slog-sweep towards the midwicket boundary was held by substitute fielder Jonathan Tattersall.
Jack Brooks took over from Rashid and Compton was bowled playing round his third delivery to leave Somerset on 74 for three, before a spell of three wickets in four balls for no runs left them in disarray on 83 for six.
This is what means to be @LV_Cricket Champions. After all, we are all Yorkshire aren't we!!!!!! #YCCCpic.twitter.com/xM8pOyezDY
— Yorkshire CCC (@Yorkshireccc) September 26, 2014
Craig Kieswetter was lbw to Steven Patterson and consecutive deliveries from Brooks saw James Hildreth run out by Jonny Bairstow dashing up to the stumps and Somerset's bowling hero, Peter Trego, comprehensively bowled for a golden duck.
It was left to Tom Abell, batting with Myburgh as a runner after being injured in the field, and Tim Groenewald to try to shore things up for Somerset, but seven overs later his partner was caught behind off Sidebottom to increase the tension again.
Brooks came back at the Kirkstall Lane End and his fifth ball was flicked by Abell into the hands of Rashid at square-leg to give the paceman his 68th championship wicket of the season, the most by a Yorkshire bowler since two divisions began in 2000 and beating Steve Kirby's haul in 2003.
Last man, Thomas, also batting with a runner because of a back injury which allowed him to bowl only five overs, had 37 balls to survive along with Overton and they stoically managed it amid the lengthening shadows.
Bad light caused the start of the final day to be delayed by two overs but when Yorkshire resumed on 148 for two, still 36 adrift, half-centurion Gary Ballance and England colleague Joe Root showed positive intent from the off, but on 23 Root survived a sharp chance to Hildreth diving low to his left at slip.
Ballance, batting more fluently than the previous evening, moved to 69 from 128 deliveries with seven fours before he leaned into a full ball from Trego and was lbw to leave Yorkshire on 178 for three.
While Root continued to pick up runs steadily, Bairstow put his full range of shots on view, driving Groenewald through the covers and mid-off for boundaries and lofting left-arm spinner Jack Leach's first ball for four.
What a day! @Yorkshirecccpic.twitter.com/zH3RNGVaSe
— Jonathan Armstrong (@JonnyStrongarm) September 26, 2014
The pressure was easing on Yorkshire as the century stand for the fourth wicket was reached from 96 balls but it ended on 110 when Bairstow departed for 49 off 46 deliveries with 10 fours, helping a leg-side long-hop from Overton into Kieswetter's gloves.
Yorkshire were 290 for four at lunch and the second ball after the interval from Leach was smacked into Abell's right shin at short-leg, the player forced to hobble off after lengthy treatment.
Root seemed set for his first century of the season for Yorkshire but, in searching for the boundary that would have taken him into three figures, he chopped Leach into his stumps, his 97 coming off 128 balls with 13 fours and a six.
Now it was Trego, who had already picked up three of the first five wickets to fall, who ploughed his way through most of the remainder of the batting to give Somerset a chance of victory.
Rashid pushed defensively to give Kieswetter an easy catch, Jack Leaning injured his hand in gloving a sharply rising ball to Hildreth and Patterson was bowled middle stump through the gate.
Leach intervened to have Pyrah stumped charging down the pitch before Trego wrapped things up with Sidebottom's wicket to give the 33-year-old paceman career-best figures of 7-84, overtaking his 6-59 for Middlesex against Nottinghamshire at Trent Bridge in 2005.
In the evening sunshine, @yorkshireccc parade the trophy pic.twitter.com/sihZQN1HZr
— Rachel Titley (@TitleyTravels) September 26, 2014
Yorkshire's delighted director of cricket, Martyn Moxon, said: "I think today's performance epitomises our spirit and shows why we are the champions.
"To put in such a massive effort with tired bowlers draining every ounce of effort was an amazing end to a fantastic season.
"We have a squad which is not aiming to be just one-day wonders but wants to go on repeating this success and I think that it is a squad which can only get better.”