James Dean’s solitary strike saw Chorley advance into the FA Cup third qualifying round at the expense of Glossop North End.
Dean’s goal came with 1 minutes remaining after the North West Counties outfit had stood commendably firm up until that point.
The Hillmen’s Edward Moran was then sent off in the dying seconds for a professional foul and the Magpies comfortably saw out the remaining moments to defeat a side 67 places below them in football’s pyramid.
Josh Hine’s pace was an instant threat to the Glossop back-line.
With only 20 seconds on the clock, a long ball was played down the right-hand flank, and Hine cut inside his man but his cross was smashed across goal, evading everybody.
Dean then hit a volley wide of goal as Chorley started brightly and looked to impose their three-league difference.
The Derbyshire-based outfit held their own in the opening stages, Jason Carey pressured on-loan Morecambe defender Chris Doyle into a poor header but the former’s shot was blocked by the scrambling Sam Ashton.
Despite the Magpies having much more of the possession they failed to take advantage, with Hine having firing wide of the left-hand post.
Dean then saw an a looping shot comfortably saved by Hall in the Glossop goal.
But it was a first half that saw little created despite the Magpies’ strong start.
Early in the second half, Paul Jarvis and Jack Dorney were introduced by boss Garry Flitcroft as the Magpies looked to up the ante against the minnows.
Dean saw his looping header tipped wide for a corner and from the resulting set-piece, Roscoe headed inches over the bar.
Former Halifax Town man Dean was in the thick of the action once again just after the hour mark, beating Hall to the ball from a Doyle through ball but his looping effort dropped over the wrong side of the bar.
With just 18 minutes remaining and with Glossop looking like taking the Conference North outfit back to Surrey Street, the home side made the breakthrough.
Adam Mather a free-kick whipped into the box and Dean headed the ball into the ground which looped over the stranded Hall and into the back of the net.
The goal knocked the wind out of the visitors and Chorley looked to capitalise on , substitute Astley Mulholland causing problems down the left wing and full-back Mark Ross surging forward down the right-hand side.
As the game entered its final stages, the visitors went in search of an equaliser by pumping men forward.
With one minute remaining, Glossop had a corner, everybody including the goalkeeper surged into the box, but first to the ball was Dean who punted the ball forward for Mulholland to race on to.
As he broke away at blistering pace, he was hauled down by Moran 30 yards from goal and the referee had no other option but to send Moran for an early bath.
The victory sees Chorley edge closer to a precious first round proper tie – but first they must overcome local rivals Bamber Bridge in the third qualifying round.
Chorley: Ashton, Ross, Mather, Doyle, Smyth, Roscoe, Hine (Mulholland 67), Whitham, Dean, Lynch (Dorney 53), Stephenson (Jarvis 53)
Subs not used: Teague, Almond, Esdaille-Binney, Grundy (gk)