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'
|Mahmoud targeting World Cup place with Iraq|
|Fabregas wants Chelsea to show winning mentality|
|Rangers borrow £10m from Ashley´s Sports Direct|
|Lyon face anxious wait over Lacazette|
|Undermanned Lazio recall Perea|
|Ki wants South Korea to prove their superiority|
|Ghana´s Gyan wary of South Africa|
|Mashaba urges South Africa to attack|
|Benitez: Napoli deserved to win|
|Pacos de Ferreira 1 Benfica 0: Leaders fail from the spot|
|Serie A Review: Higuain at the double in controversial Napoli win, Udinese see off Empoli|
|I´m glad Rochdale haven´t made the news - Hughes|
|Getafe 2 Celta Vigo 1: Hosts come from behind for first win in 10|
|Real hit back at media reports over transfer dealings|
|Rochdale 1 Stoke City 4: Joy and angst for Bojan as Premier League side progress|
|Turkish Super Lig Review: Kuyt at the double in Fenerbahce win, Besiktas back on track|
|Senegal v Algeria: Morale is high, insists Gourcuff|
|Cassano leaves beleaguered Parma|
|Copa del Rey Preview: Atleti look to overturn Barca advantage, Espanyol wary|
|Atletico Madrid v Barcelona: Griezmann targets second-leg fightback|
|Sheffield United v Tottenham: Clough expects fired-up Spurs for second leg|
|Cape Verde 0 Zambia 0: Stalemate sends both sides out|
|Democratic Republic of Congo 1 Tunisia 1: Both teams qualify for quarter-finals|
|FA Cup fifth round: Middlesbrough handed Arsenal test|
|South Africa v Ghana: Must-win game for Mashaba´s men|
|Parma v Juventus: Serie A leaders strong favourites to reach semi-finals|
|Van Praag planning to stand for FIFA presidency|
|Inter snap up Brozovic|
|Van Persie unsure of long-term United future|
|Broken metatarsal rules El Shaarawy out for at least six weeks|
|FIFA: No disciplinary proceedings against Real|
|No Plan B if Guardiola goes - Rummenigge|
|Millwall take Hooiveld on loan|
|Chile v United States: Klinsmann has high hopes for young stars|
|Carver to lead Newcastle until end of season|
|Shenaishil taking positives from last-four exit|
|Neymar happy with life at Barca and Messi relationship|
|Lucas Silva ready for life at Real|
|Milan ´always with Inzaghi´ - Menez|
|Rodriguez living the dream at Real|
|Stielike expecting Australia in final|
|Mourinho not dwelling on Bradford defeat|
|Schweinsteiger under no pressure to extend Bayern contract|
|Herd heads to Wigan on loan|
|Inter defensive duo suffer hamstring tears|
|UAE coach Ali eyes Asian Cup final|
|Gattuso dreaming of managing Rangers|
|Fiorentina agree return of Gilardino on loan|
|Sakho hits back at critics|
|South Korea 2 Iraq 0: Kim books sixth Asian Cup final place|
|Sturridge could return against Chelsea|
|Zinnbauer backs Drobny as Hamburg first choice|
|Drogba targeting Chelsea stay|
|Postecoglou confident Australia squad can progress|
|UEFA does not have the courage to run against me - Blatter|
|Foster: Anichebe unplayable|
|Australia v UAE: Japan´s absence a boon for Asian Cup hosts|
|Milan v Lazio: Injury-hit visitors aiming for back-to-back wins|
|Trezeguet confirms retirement|
|No ´major problems´ with Nicolas Frey´s head wound|
|Strootman injury not "serious" - Garcia|
|No Paraguay, USA for retiring Riquelme|
|Saint-Etienne did not try to play football - Blanc|
|Primeira Liga Review: Sporting move within one point of Porto|
|La Liga Review: Parejo downs Sevilla, Resino starts with a point|
|Serie A Review: Juve go seven points clear as Roma draw again|
|Ligue 1 Review: Paris Saint-Germain and Lyon make Marseille pay for slip-up|
|Burkina Faso coach puts AFCON exit down to bad luck|
|Saint-Etienne 0 Paris Saint-Germain 1: Ibrahimovic scores in repeat performance|
|Shenaishil optimistic despite Kasim absence|
|Walcott: Goal has been a long time coming|
|DR Congo v Tunisia: Leekens warns against complacency|
|Congo 2 Burkina Faso 1: Thievy helps send 2013 runners-up crashing out|
|Gabon 0 Equatorial Guinea 2: Balboa and Iban put hosts through|
|McCarthy and Distin on road to recovery|
|Gil has hit the ground running - Lambert|
|Eredivisie Review: Ajax and Feyenoord lose ground after dour draw, Eagles secure big win|
|Wenger confirms Gabriel move is imminent|
|Eto´o presented to Sampdoria fans|
|Cape Verde v Zambia: Victory a must for 2012 winners to avoid elimination|
|Brighton and Hove Albion 2 Arsenal 3: Walcott and Ozil among the goals for holders|
|Mancini upbeat despite ´cruel´ late defeat|
|Pogba revelling in rich vein of form|
|Aston Villa 2 Bournemouth 1: Gil helps under-fire Lambert breathe easy|
|Defour dismissed after Standard Liege banner taunt|
|Allardyce relieved with scrappy West Ham win|
|Sturridge ´happy man´ after return to Liverpool training|
|Inter 0 Torino 1: Moretti ends unbeaten run for top-four hopefuls|
|Juventus 2 Chievo 0: Pogba inspires victory as leaders march on|
|Bristol City 0 West Ham 1: Super sub Sakho sinks City|
|Hughes in talks over new Stoke deal|
|Delph signs new contract|
|Chelsea v Liverpool: Mourinho demands League Cup response|
|Football League Preview: Derby eye top two, Cambridge back to reality|
|Nani not giving up on Old Trafford career|
|Perth Glory 3 Melbourne Victory 3: Leaders stage two-goal late comeback|
|Neymar: Barca have no interest in Real results|
|Milan defender Mexes apologises for red card|
|South Korea v Iraq: Strange lead-up for Shenaishil´s men|
|Lazio´s Djordjevic thanks well-wishers ahead of ankle surgery|
|Iran´s Asian Cup appeal dismissed by AFC|
|Cech urges Chelsea to clean up FA Cup exit ´mess´|
|Henderson: Liverpool are up for the cup|
|Edimar wants ´normal´ ban for Real star Ronaldo|
|Pellegrini defends misfiring City strikers|
|Australia ready for UAE - Sainsbury|
|Blanc takes positives from past|
|Inzaghi promises ´something different´ at Milan|
|Mexes sorry for seeing red|
|La Liga Review: Wins for top three|
|Vitoria Guimaraes 2 Gil Vicente 2: Last-gasp penalty salvages point for hosts|