Luke Wright hit a magnificent career-best 187 as Sussex pulled off a great escape to earn an unlikely draw against Middlesex in the top-of-the-table Division One clash at Lord's.
There was still a touch of late drama when Middlesex were left to score 178 from 20 overs, after finally bowling Sussex out for 454, but the two teams shook hands after Middlesex had carved their way to 50-3 from eight overs.
Joe Denly, Neil Dexter and Gareth Berg all gave their wickets away in a chase that was always going to be a difficult proposition, and Middlesex captain Chris Rogers decided to settle for the draw when Berg was leg-before to Chris Liddle.
With five points from the game, Sussex remain as First Division leaders and Middlesex's 10 points moves them into second place.
Sussex, who began the final day on 228-4, still 49 runs behind, held on for 137 overs in their second innings after being forced to follow on when they were bowled out for a first-innings 222 in reply to Middlesex's 499-8 declared.
Wright, who started the final day on 48, having been badly dropped at deep square leg on 40 on the third evening, did not give another chance until he had reached 153 - Rogers putting down a skyer as he ran back from mid off in what proved to be Middlesex's last real chance of winning the game.
Wright added 159 for the fifth wicket with Ed Joyce (98), before the Sussex captain fell to Tim Murtagh in the third over of the second new ball, and then a further 101 for the eighth wicket with Will Beer, whose 102-ball 39 was also crucial to the Sussex cause.
When Beer was finally taken at backward short leg by Berg, off Ollie Rayner, it was left to Wright to shepherd Sussex's last two batsmen to safety.
With Steve Magoffin content merely to defend in a further stand of 46, Wright began to hit out after passing his previous career-best of 155 not out, against MCC at Lord's in 2008. But, after a flurry of fours off both Rayner and Murtagh, Wright missed another attempted big hit as he went down the pitch to Denly's leg spin and was stumped.
Magoffin then pulled a long hop from Denly straight to mid-wicket, forcing Middlesex to have a token attempt at reaching their stiff 20-over target.