Mark Ramprakash guided Surrey to their first LV County Championship win of the season against Northamptonshire at Wantage Road.
Ramprakash finished on 79 not out as the visitors overhauled a target of 241 for a seven-wicket success on the final evening.
Steven Davies got the chase off to a flyer with 25 off 19 balls before falling to left-arm spinner Nicky Boje (1-88).
But Ramprakash shared half-century stands with Arun Harinath (48) and skipper Rory Hamilton-Brown (45) as Surrey reached tea on 156-3.
Former Northants man Usman Afzaal (33no) joined Ramprakash for the final push, the former England pair sharing an unbroken fourth-wicket partnership of 88 to see their side home with 10 overs remaining.
Ramprakash, 40, who has now scored 475 runs for twice out in his last four innings, struck nine fours during his 143-ball contribution.
Earlier, Andre Nel (4-68) and Jade Dernbach (3-42) had combined to bowl out Northants for 229 in their second innings.
Resuming on an overnight position of 154-4, they quickly slipped to 188-8 including two scalps for Nel.
After some brief resistance from Chaminda Vaas (17) and David Willey (18no), Dernbach removed the last two men to leave Surrey a manageable target.
Surrey, whose victory was their first in 17 Championship matches dating back to the same fixture last year, remain bottom of the Division Two table, but are now just five points behind Leicestershire.
An incredible last-wicket stand of 118 between Andre Nel and Jade Dernbach kept Surrey's hopes alive in their LV= County Championship clash with Northamptonshire.
The pair helped the visitors recover from 268-9 to 386 all out as they both struck their highest scores in all forms of the game.
South African bowler Nel clattered 96 from 125 balls while Dernbach cleared the boundary with two huge sixes on his way to 56 not out.
Northants looked set to finish off the tail with relative ease after Surrey had resumed on 210-7, with Chaminda Vaas breaking through in the 14th over of the day when Tim Spriegel (43) edged an attempted pull to Niall O'Brien.
Tim Linley then departed for a duck before Nel and Dernbach piled on the runs to draw the visitors to within 11 runs of their opponents' first innings total.
The pair then made inroads with the ball as Nel (2-51) took two wickets and Dernbach (1-19) claimed the scalp of O'Brien for 44 as Northants head into the final day finely poised on 154-4.
Tim Linley claimed his first five-wicket haul but Surrey struggled to fight their way back against Northamptonshire at Wantage Road.
The hosts could only add 67 for the last five wickets after resuming on 330-5 with Linley removing centurion Mal Loye for 164 to finish with five for 105.
Surrey then reached 210-7 in reply, Mark Ramprakash top scoring with 70 off 165 balls as Chaminda Vaas excelled on his first appearance for Northants.
He removed Arun Harinath with his third delivery and finished with 1-16 from 15 overs as the visitors lost wickets at regular intervals.
Opener Steven Davies made 33 before he was caught behind off Lee Daggett and Nicky Boje then had captain Rory Hamilton-Brown out in similar fashion for 30.
Daggett bowled Usman Afzaal just after tea before Ramprakash skied James Middlebrook to Vaas at point with the score on 159.
Northants skipper Andrew Hall took two late wickets to leave the hosts firmly in the ascendancy although Matthew Spriegel remains 25 not out.
Mal Loye made his first century since returning to Northamptonshire as the hosts took charge on day one their County Championship Division Two match against Surrey at Wantage Road.
Loye ended the day unbeaten on 121 as he and former captain Nicky Boje (77 not out) made 161 between them.
Opener Stephen Peters (61) had earlier also hit a half-century as he shared a stand of 90 with Niall O'Brien (44) before both fell to Tim Linley.
Having earlier won the toss and chosen to bowl, Surrey threatened a revival after lunch when Northants fell from 115 for one to 169 for five - debutant Tom Jewell taking the scalp of their skipper Andrew Hall (5), while Andre Nel bowled David Sales (0) in comprehensive style.
Loye reached his fifty off 114 balls before Boje, who resigned as skipper last week, became the third batsman to go past 50 after tea - the pair's partnership put Northants back on top.
The sixth-wicket pairing then comfortably batted out the rest of the day without alarm as the hosts reached the close on 330 for five.