James McClean’s first Wigan Athletic goal ensured the holders beat Crystal Palace 2-1 to reach the fifth round of the FA Cup on Saturday.
Aaron Wilbraham's second goal for Palace just a few minutes after he came on looked to have earned a replay after Ben Watson had opened the scoring against his former club.
Winger McClean had the final say though, as he struck 12 minutes from time in the fourth round clash at the DW Stadium to dump out Premier League outfit Palace.
Tony Pulis' men must now turn their attention back to staying in the top flight, while Wigan can dream of another trip to Wembley as well as mounting a promotion push.
Defender Paddy McCarthy returned to the Palace line-up as captain, having not featured since April 2012, as Pulis made four changes to the side that beat Stoke City last weekend.
On-loan striker Nicky Maynard made his home debut for Wigan and Uwe Rosler also made four alterations to the side beaten at Doncaster Rovers.
Wigan attempted to stamp their authority on the game in the opening exchanges, but Palace came close to an opening goal seven minutes in when Cameron Jerome's strike produced a fine save from Ali Al-Habsi.
Stuart O'Keefe fired straight at Al-Habsi after Marouane Chamakh had cut the ball back as the visitors took the upper hand.
Palace were almost caught out from a short corner after 19 minutes, but Callum McManaman fired wide of the far post.
And the home side were in front nine minutes before half-time, when McClean broke down left and his cross was swept home by the on-rushing Watson with his right foot.
There was another blow for Palace when Jonathan Parr, who recently returned from five months on the sidelines with a ligament injury, was carried off after a lengthy stoppage late in the first half.
McManaman spurned a chance to double Wigan's lead seven minutes into the second half when he flashed a left-foot shot wide after Palace failed to clear.
But Palace got into their stride and Al-Habsi thwarted them once again when he kept out Jason Puncheon's strike with a fine reflex save.
There was more frustration for winger McManaman when his shot deflected wide after he opted to take an extra touch.
And he was made to pay when Wigan failed to clear Barry Bannan's corner and substitute Wilbraham made an instant impact as he struck from close range after 69 minutes.
Fellow substitute Dwight Gayle could have put Palace in front, but Al-Habsi made a fine save down to his left after a swift break.
But it was Wigan who snatched a winner 12 minutes from time when Roger Espinoza set up McClean and he found the back of the net with a left-footed strike from outside the area.
McCarthy missed a free header that would have forced a replay late on, before Gayle had penalty appeals turned down after having his shirt pulled in the area.
|26||Ali Al Habsi|
|Coach: U. Rösler|
for N. Maynard 74'
for C. McManaman 74'
for J. McArthur 80'
|Barca felt Messi absence - Busquets|
|Martino knew Messi would come out of retirement|
|Shilton never convinced by Allardyce|
|Degenek replaced by Giannou for Socceroos|
|Griezmann will still take penalties - Simeone|
|Simeone proud of ´one of the best´ wins|
|Godin suffers sprained ankle ligament|
|West Ham receive positive news over injured duo|
|Robson: Four wins for Southgate and he´s an England contender|
|Gunes rues Besiktas´ inability to see off Dynamo|
|Sarri: Late goals leave bitter taste|
|Borussia Monchengladbach were exceptional against Barcelona, feels Schubert|
|PSG must be patient, says Emery|
|Celtic are lucky to have Dembele - Rodgers|
|I´m completely focused on Arsenal, insists Wenger amid England talk|
|Hasselbaink denies wrongdoing amid impropriety allegations|
|Ancelotti frustrated by slow, toothless Bayern|
|Barcelona deserved their win - Luis Enrique|
|I want Celtic atmosphere at City – Guardiola|
|Rebrov defends Yarmolenko after ´difficult´ match|
|Rostov draw is two points dropped for PSV, says De Jong|
|Torres eyeing ´magical´ year for Atletico|
|Celtic 3 Manchester City 3: Dembele at the double in six-goal thriller|
|Celtic 3 Manchester City 3: Dembele at the double in six-goal thriller|
|Rostov 2 PSV 2: Propper´s penalty miss costs visitors|
|Besiktas 1 Dynamo Kiev 1: Tsygankov stuns wasteful Turks|
|Napoli 4 Benfica 2: Mertens bags two as Napoli run riot|
|Arsenal 2 Basel 0: Walcott´s capital gains tax Swiss visitors|
|Borussia Monchengladbach 1 Barcelona 2: Pique grabs the winner|
|Atletico Madrid 1 Bayern Munich 0: Carrasco gives Ancelotti first taste of defeat|
|Ludogorets 1 Paris Saint-Germain 3: Cavani inspires comeback win|
|Premier League, FA and EFL to investigate transfer allegations|
|Vardy reveals matchday energy drink and port routine|
|Everton coping without Stones, says Jagielka|
|Sacked Jemez admits to ´great sadness´ at Granada exit after worst start in over 70 years|
|Wenger has so much to offer English football - Schmeichel|
|No truth to England rumours, says Klinsmann|
|Spalletti demands end to damaging Roma ´games´|
|De Boer: Brozovic was punished and forgiven|
|Allardyce paid price for lack of privacy - McClaren|
|Milik can match Lewandowski - Reina|
|LMA ´extremely concerned´ about manager bribe allegations|
|Iwobi: I nearly left Arsenal|
|Mata has found a ´natural habitat´ at United|
|Higuain slowly approaching top form|
|´Stupid´ Allardyce driven by money - Dyke|
|Wijnaldum vows to improve|
|Renato Sanches needs time at Bayern - Hitzfeld|
|Ibrahimovic nurturing United talent - Lingard|
|Mourinho feels sorry for Allardyce|
|United boss primed for ´must-win´ Europa League tie|
|Mourinho keen to protect under-fire Rooney|
|Jeonbuk Motors 4 Seoul 1: Leonardo brace puts hosts in the driving seat|
|Maloney returns to Scotland squad|
|Van Persie: Kids will decide my future|
|Entrapment won on this occasion - Allardyce|
|Ibra-Rashford pairing the answer for United - Neville|
|Tevez hints at imminent retirement|
|England in safe hands with Southgate - Glenn|
|Holman talks up A-League quality|
|CONCACAF Champions League Review: Red Bulls progress, Timbers win|
|Januzaj blow for Sunderland|
|Navas accepts blame for Dortmund equaliser|
|Sporting assistant Raul Jose pleased with win|
|Nuno left to regret slow start as Porto fail on English soil again|
|Vardy rejected Arsenal due to style|
|Simeone: I am not Griezmann´s mentor|
|Schmidt bemoans ´brutal´ Monaco equaliser|
|Ranieri doesn´t trust bookies over England job|
|Genesio worried wastefulness will cost Lyon in long run|
|Preud´homme admits Champions League too much for Club Brugge|
|Telegraph passes findings to FA after further corruption claims|
|Zidane: Draw difficult to accept|
|Pochettino delighted with in-form Son|
|Vietto undeterred by wasteful showing|
|Tuchel: Dortmund can still get better|
|Resilient Leicester display pleases Morgan|
|Glenn reflects on ´painful´ call to dismiss ´distraught´ Allardyce|
|Borussia Dortmund 2 Real Madrid 2: Late Schurrle strike salvages draw|
|Monaco 1 Bayer Leverkusen 1: Glik stunner snatches a point|
|Dinamo Zagreb 0 Juventus 4: Pjanic pilots comfortable victory|
|CSKA Moscow 0 Tottenham 1: In-form Son hits late winner|
|Copenhagen 4 Club Brugge 0: Delaney stunner helps Danish champions canter to victory|
|Sporting CP 2 Legia Warsaw 0: Magiera´s first game ends in defeat|
|Sevilla 1 Lyon 0: Ben Yedder seals win for Europa League holders|
|Leicester City 1 Porto 0: Slimani continues to haunt old foes|
|Shearer: Allardyce has made England a laughing stock|
|Howe, Pardew and Wenger among the contenders to succeed Allardyce|
|Emery´s PSG struggles give Ludogorets hope|
|Allardyce offers ´wholehearted apology´ for England shame|
|Lahm: ´Extraordinary´ Griezmann different to Lewandowski|
|Iniesta is the best in the world, claims Menotti|
|Irregular heartbeat ends Dempsey´s season|
|Bournemouth ´realistic´ over permanent deal for Wilshere|
|Guardiola warns against complacency|
|Allardyce and England part company after damning video|
|De Bruyne out for up to three weeks - Guardiola|
|Luis Enrique demands fast start at Gladbach|
|Ancelotti wary of Atletico threat|
|Al Ain 3 El Jaish 1: Caio capitalises on late error|
|Ter Stegen happy with solution to Bravo battle|
|Emery: PSG need time to gel|
|Hernandez: It was very difficult at Real Madrid|
|Derby stand down Pearson ahead of Cardiff match|
|Rodgers sympathises with ´poor guy´ Allardyce|
|Opponents are trying to get Ribery send off - Hoeness|
|Martino named Atlanta United head coach|
|Rodgers urges Celtic to have belief against City|
|Rodgers has made same impact as Guardiola - Brown|
|Benfica one of the best in Europe, warns Sarri|
|Menotti: Ronaldo never played in a team like Messi´s|
|Walcott happy to move on from Arsenal struggles|
|Champions League Matchday Two: Bayern hunt Atleti revenge|
|Coquelin facing three weeks out|
|Arsenal transfers beyond reproach, says Wenger|
|Schubert extends Gladbach contract|
|Lewandowski urges Bayern to learn from Atletico defeat|
|Griezmann feared Simeone to PSG was ´a done deal´|
|FA investigating Allardyce claims|
|Valencia keep Voro in charge for Atletico clash|
|One of Serie A´s all-time greats: The numbers behind Totti at 40|
|Toure brands FIFA ´complacent´ after racism taskforce closed|
|Emery expects Ronaldo to stay at Real Madrid|
|Tottenham not scared of Moscow trip - Alderweireld|
|Sessegnon signs with Montpellier|
|Rakitic delighted with form|
|Gameiro: I could have joined Barcelona|
|Stones talks up Celtic quality|
|Liverpool good enough to win title - Houllier|
|Klopp happy with Firmino in central role|
|Watford got bullied all over the pitch - Deeney|
|Nuno keen for Porto to end England misery|
|Legia boss Magiera set for whirlwind debut|
|´Terrific´ Burnley delight Dyche|