Sam Tye's 98th-minute header won a dramatic five-goal thriller for Rugby Town at FC Stratford.
Rugby dominated throughout but were guilty of missing a string of chances including two first half penalties and were then stung by two counter-attack goals by the hosts but ultimately Valley found a way to get the three points.
Louis Samuels missed the target with an early penalty which was awarded after Aaron Nuttall was fouled by home goalkeeper Sam Cooksey.
Then Rivel Mardenborough had the chance himself to score from the spot after he was fouled by Cooksey but he slipped as he struck the ball and ballooned it over the bar.
The hosts took a shock lead just after half time with a good counter-attack to a Rugby attacking free-kick with Ash Bodycote parrying Aksum White's low cross into the path of Lucinee Donzo who turned the ball into the net from close range.
Mardenborough made up for his earlier miss to equalise when he collected Nuttall's pass before smashing a shot past Cooksey from just outside the box.
Substitutes combined to finally see Rugby lead for the first time when Tye turned a neat ball round the corner into the area to Zidan Sutherland who caught Cooksey out with a powerful shot at the near post.
With nine minutes of stoppage time to see out Rugby allowed Stratford to gain some momentum and they got their reward with a 94th-minute equaliser as Daniel Atkins arrived to head in Zach Mackenzie's cross.
But there was still time for Tye to head in the winner from Jake Duffy's corner to send the travelling Valley fans ecstatic.