Zafar Ansari hit Mitchell Claydon for two legside sixes in an astonishing final over, during which Surrey failed to score from the last two balls to tie with Kent Spitfires in a thrilling Royal London One-Day Cup match at the Kia Oval.
Both counties ended up taking a point away each after Kent's 314 for eight was equalled by Surrey's 314 for nine, but the hosts will be kicking themselves after coming so close.
Left-hander Ansari, who came in at number nine despite being Surrey's championship opener, lifted Claydon's first ball of the final over to midwicket for six as Surrey chased 16 to win and hit a two wide of deep square cover before straight-driving the Kent fast bowler for another maximum.
With two runs needed from three balls, Surrey virtually had it in the bag. But after Ansari took a dabbed single from the fourth ball, Gareth Batty swung and missed at the fifth ball and then drove the last ball straight to mid-off, where James Tredwell completed the run out.
Ansari's brave effort left him 27 not out from 16 balls.
As it was, the tie was in many ways a fitting result in a game full of fine strokeplay and also some excellent bowling from Kent spinners Tredwell and Fabian Cowdrey, while Surrey fast bowler Chris Tremlett shone in taking 4-38 from his 10 overs.
Earlier in the floodlit contest, Sam Billings' 87 from 42 balls, with six fours and as many sixes, inspired Kent to their challenging total.
Billings' extraordinary shot-making included going down on one knee several times to sweep and flip fast bowlers Stuart Meaker and Tremlett high over a short legside boundary.
Before he got to the crease, Sam Northeast and Cowdrey combined for a vital third-wicket partnership of 92 in 19 overs after Daniel Bell-Drummond fell for 18 in the seventh over and Brendan Nash followed shortly after.
Northeast's day finished when he skied Tremlett to mid-on after hitting five fours in 63 from 87 balls and with Darren Stevens and then Cowdrey - the latter for 75 - departing, Kent were in danger of falling short of par on 219 for five.
Enter Billings. The 23-year-old started fluently, twice reverse-sweeping Tillakaratne Dilshan's off-breaks for four and slog-sweeping Mahmood for six, but his thrilling acceleration saw him dominate a sixth-wicket stand of 66 in 6.3 overs with Calum Haggett.
Billings’ half-century arrived off just 29 balls, paddling Meaker high over short fine leg for four, before he unfurled some even more astonishing shots - a straight driven six off Batty and a flicked maximum, down on one knee, from Meaker.
Billings added two more sixes to his collection, a straight hit off Mahmood and a slog-sweep off Tremlett, before he was caught at long leg after not getting enough bat on another hook at the latter seamer.
Haggett departed in the same over, the 47th, but Tredwell batted brightly for 20 not out from 13 balls, and some more useful tail-end runs were added before Claydon was bowled for seven swinging at the last ball of the innings, from Mahmood.
Surrey's reply began disastrously as Dilshan flashed at the first ball he faced to get caught behind off Doug Bollinger, before Vikram Solanki, Steven Davies and Rory Burns stepped up with a blaze of flourishing strokes.
Solanki, with two sixes and nine fours in an 88-ball 83, added 89 in just over 13 overs with Davies, whose 58 from 52 balls featured 10 fours.
The hosts' troubles started when Burns (43) was run out in the first batting powerplay over. Gary Wilson was then caught for 29 at deep square-leg off a top-edged pull at Claydon and Tremlett, sent in to swing from the hip, was bowled for 12 after hitting one six and a four.
Surrey, needing 49 from the last four overs,were revived by Mahmood, who took 19 from Bollinger's 47th over, including a huge six over midwicket.
Mahmood also drove Tredwell for six before needlessly attempting a reverse-slap to get bowled by the off spinner's final ball.
Bollinger then sent down a fine 49th over, which cost only five runs, before Ansari and Batty were pivotal figures - for wholly different reasons - in the final drama.
Surrey captain Wilson said: "I would happily have taken a point with four overs to go, but then with one run needed for victory from the last two balls I thought we were home in a boat.
"It was actually quite a hard pitch to start your innings on but five of our guys got in and got out before Zafar's last-over effort. Vikram Solanki's 83 was a great effort.”