National League Wrexham knocked Championship side Coventry City out of the FA Cup in a seven-goal thrillerEarly goals from Sam Dalby and Elliot Lee got Wrexham off to a dream start before Ben Sheaf halved the deficit.
Thomas O'Connor got Wrexham's third before Paul Mullin's penalty looked to have sealed the win, with Jonathan Panzo also sent off for handball.
But substitute Viktor Gyokeres got one back for the 10 men and Kasey Palmer's free-kick set up a grandstand finish.
But Wrexham held on despite late chances for the hosts and it is they who will be in the draw for the FA Cup fourth round for the first time since 2000.
The National League side took the lead 12 minutes into the contest, Dalby rising highest between two Coventry defenders to head Wrexham ahead.
Just five minutes later Wrexham got their second, as Lee's back-post cross searching for Mullin caught out Simon Moore in the Coventry goal and went straight in to the delight of the travelling fans behind the goal.
The Championship side found a way back into the contest before half-time when Martyn Waghorn laid the ball off to Sheaf to stroke home from near the penalty spot.
Coventry were on top for the first time in the contest but in first-half added time Wrexham got their third when Luke Young's header was nodded back across goal by Dalby for O'Connor to head home.
Things went from bad to worse in the second half for Coventry, as Panzo blocked Max Cleworth's goal-bound effort with his arm and was shown a straight red card.
From the resulting penalty Mullin stepped up calmly to send Moore the wrong way and score Wrexham's fourth.
After hitting the post Palmer set up Gyokeres, the Sweden international finishing from close range to reduce Wrexham's lead to two.
And with 15 minutes to play Wrexham's lead was down to one, as Palmer's curling free-kick beat Howard, who was rooted to the spot.
Gyokeres almost levelled from a tight angle but Howard just did enough to push the rising effort onto the post.
Coventry continued to throw everything at Wrexham, Palmer's sliding effort coming closest, but they just could not find a way through in the closing stages as the National League side booked their place in the fourth round.