The LV= County Championship match between Somerset and Durham at Taunton looked to be heading for a draw after the hosts ended day three 28 runs behind with all second-innings wickets remaining.
Replying to Somerset's first-innings total of 458, the visitors were all out for 493 following a century for Mark Stoneman, 70 from both Paul Collingwood and Michael Richardson and half-centuries from Ben Stokes and Scott Borthwick.
By stumps, Somerset had reached seven without loss from four overs.
Stoneman, who resumed with 78 of 163 for three, went to his second century of the season in the morning session with a single to backward point off Gemaal Hussain.
Ben Stokes, beginning his innings today following Will Smith’s departure to the final ball of day two, looked untroubled and pulled Hussain to long-on to bring up the Durham 200.
However, Somerset did make a breakthrough when Stoneman hit a Peter Trego slower ball to short cover, ending his innings of 122 and a fourth-wicket partnership of 73.
Stokes went to his half-century in style with a straight six off George Dockrell, but was caught at mid-off soon after when looking to drive the part-time left-arm spin of Dean Elgar.
Phil Mustard hit Elgar for consecutive boundaries to bring up the Durham 300, but - after taking his score to 30 in quick time - he was caught at deep square-leg by Arul Suppiah off Hussain.
Richardson joined Collingwood and both found batting easy in the sunshine.
The former dominated a partnership of 101 before being run out seeking a single to backward point.
Collingwood remained and added useful 10th-wicket runs with Graham Onions to give Durham the lead. The visiting skipper was the last man out, bowled by Hussain.