Durham moved off the bottom of the Friends Life t20 North Group after Ben Stokes smashed an unbeaten 72 off 48 balls as they secured a final-ball win over Nottinghamshire at Trent Bridge.
Stokes came to the crease in the sixth over with his side faltering on 30-3 as they chased 160 for victory.
But his knock, which included one four and five sixes, lifted Durham above Yorkshire and Leicestershire into fourth place in the table.
Despite his heroics, Stokes required the assistance of Michael Richardson to get Durham home, with his team-mate scoring the winning run from the final ball of the contest.
The Outlaws earlier posted a total of 159-7 after being put in to bat, with James Taylor top-scoring with 54.
Taylor eventually holed out to the final ball of the innings, with his knock consisting of one six and four boundaries from 43 deliveries.
Alex Hales (41) and Samit Patel (33) were the other leading runscorers for the home side.
Patel smashed Gareth Breese for three consecutive boundaries before hitting Chris Rushworth for six but he was yorked by Graham Onions.
Hales hit six boundaries in his 41 Nottinghamshire lost their way once he returned to the pavilion, with Taylor ensuring they posted a decent total.
Durham struggled in their reply, with pace bowler Harry Gurney (3-26) picking up two of the three early wickets to fall.
Nottinghamshire looked set to secure their seventh victory in eight matches over the Dynamos, with Gareth Breese (32) the only other batsman to get going for the visitors.
But Stokes' well-paced innings proved to be a matchwinner, as he denied the home side the opportunity of returning to the top of the group.