Danny Smith's late winner sank Port Vale to send non-league Chasetown into the third round of the FA Cup for the first time in their history.
Chasetown matchwinner Danny Smith celebrates
Vale striker Luke Rodgers hit the bar from the penalty spot after Vaughan Thomas fouled Calum Willock in the box.
And five minutes later, Rodgers saw his second spot-kick saved by Lee Evans after he was fouled by Joe Williams.
Chasetown kept coming forward and Smith headed home Kyle Perry's cross to set up a home tie with Cardiff City.
The British Gas Business Southern League Midland Division side are from the fourth tier of non-league football.
Chasetown have battled through seven rounds to reach the third round, more than teams joining the competition at this stage play if they reach the final at Wembley.
Chasetown: Evans, John Branch, Slater, Thomas, Williams, Mark Branch, Steane, Hawkins (Sam Smith 73), Holland, Perry, Perrow (Danny Smith 78).
Subs Not Used: Sargeant, Edwards, Spacey.
Goals: Danny Smith 89.
Port Vale: Anyon, McGregor, Lowe, Pilkington, Talbot (Richards 90), Whitaker, Laird, Harsley, Salmon, Rodgers, Willock.
Subs Not Used: Martin, Miles, Glover, Lawrie.
Ref: Neil Swarbrick (Lancashire).