On a pitch which became increasingly docile, Yorkshire hung on for a draw on 238-5 after being set a target of 357 in a minimum of 81 overs by Durham in the Specsavers County Championship Division One match at Chester-le-Street.
Jack Leaning and Tim Bresnan survived for 25.4 overs after coming together when off-spinner Ryan Pringle ended any lingering chance of a late White Rose onslaught by removing Andrew Gale and Alex Lees in successive overs.
Lees played fluently in an opening stand of 112 with Adam Lyth, which suggested the target was reachable. But he went into his shell after two wickets fell in two balls during an excellent mid-afternoon spell by Irish seamer Barry McCarthy.
Lyth departed reluctantly for 50, apparently believing he had played a yorker length ball into the ground before it flew at just above head height to first slip.
The catcher was Ben Stokes, on as a substitute with ECB approval as he recovers from his knee operation. He replaced Paul Collingwood, who has a fractured thumb.
Replays suggested Lyth’s dismissal was fair and there were no doubts about the next ball, which nipped back sharply to have Kane Williamson lbw.
From the hat-trick ball Gary Ballance survived raucous appeals for a leg-side catch by Michael Richardson and then scored 17 off the next six balls he faced. But Durham recalled Graham Onions, who in his first two spells conceded only 20 in 11 overs, and the seamer had Ballance caught behind for 32 with an excellent ball from round the wicket. It pitched on off stump and seamed away to take the edge.
Gale made a sedate 17 before he edged behind when pushing forward, then Lees stayed back and was bowled for 74.
Durham batted on for 55 minutes to add 55 runs in the morning, Keaton Jennings moving on from 185 to 221 not out, the fifth highest score by a Durham batsman.
The 24-year-old left-hander had batted for 578 minutes, faced 416 balls and hit 23 fours when the declaration came on 507 -8, Durham’s highest second-innings total.
Middlesex and England batsman Nick Compton, 33, is to take an indefinite break from cricket after struggling for both club and country this season.
He accrued just 51 runs at an average of 12.75 in three Tests against Sri Lanka.