A rare Zeljko Filipovic goal helped Maribor beat Wigan Athletic 2-1 to progress into the UEFA Europa League knockout stages.
Zulte Waregem's 2-0 defeat against Group D winners Rubin Kazan coupled with Maribor's victory sent the Slovenian champions into the round of 32 in what ended up being a winner-take-all clash on Thursday with the English FA Cup holders.
Filipovic's first goal for the club since July 2012 proved to be the difference after Jordi Gomez had put Wigan in front from the penalty spot after 41 minutes.
But Wigan's first away goal in the competition in their debut European season was cancelled out almost immediately by Dejan Mezga.
Both teams were reduced to 10 men – Chris McCann and Ales Mertelj were given their marching orders – before Filipovic's strike and two late goals in the other Group D fixture in Brugge added to the drama and ensured that Maribor avoided a third consecutive exit at the group stages having started the evening bottom.
Defeat for Wigan in new manager Uwe Rosler's first game in charge represented the sixth successive loss in all competitions for the Championship club.
Filipovic gave Wigan an early scare after seven minutes with the first chance of a cagey opening after he was afforded plenty of time and space 20 yards out before crashing a rising shot that flashed wide and had goalkeeper Scott Carson scrambling for his top left-hand corner.
Nick Powell, who netted a brace in Wigan's 3-1 win in the first meeting between the two sides in October, volleyed over from just outside the penalty area after collecting Jean Beausejour's bobbled pass.
Gomez triggered a frantic final 10 minutes of the first half when he saw his 20-yard free-kick rebound to safety off the post after being felled by Marcos Tavares.
The Spanish midfielder did find a way past goalkeeper Jasmin Handanovic , though, four minutes before the interval from the penalty spot.
Arghus was slow to react to Gomez's pass and Powell nipped in to prod the ball away from goal and draw a clumsy challenge from the Brazilian defender.
Gomez sent the subsequent spot-kick straight down the middle, sparking wild celebrations among Wigan's travelling fans that quickly turned to despair as Maribor levelled less than two minutes later.
Mitja Viler's shot glanced against McCann's arm and referee Szymon Marciniak was quick to point to the spot again and give the former Burnley midfielder his marching orders for a second bookable offence.
Carson did superbly to get down low to his right and palm Mezga's effort against the post, but he was powerless to prevent the penalty taker from tucking away the rebound from inside the six-yard box.
Powell turned Beausejour's cross wide five minutes after the restart as the visitors initially responded well to going down to 10 men before Filipovic put Maribor ahead with a fantastic strike just before the hour.
Mezga's cut-back fell invitingly for Slovenia international Filipovic and he coolly dispatched a side-footed effort from 25 yards that nestled in Carson's top left-hand corner.
Mertelj was then sent off with 16 minutes remaining for a rash tackle on Gomez, earning his second yellow card, and Handanovic kept out a late Marc-Antoine Fortune effort as Maribor progressed in dramatic style.
|8||D. Mezga||43' 43'|
|70||A. Mertelj||65' 74'|
|Coach: A. Šimundža|
for Marcos Tavares 78'
for D. Mezga 81'
for N. Fajić 86'
|Celtic charged by UEFA over crowd disturbances|
|Not extending Man United stay my only regret - Larsson|
|Aubameyang´s mum: He always spoke about Madrid, never Barcelona|
|AC Milan sale delayed until March|
|Police horse burger thrower fined|
|Nolito comfortable with Guardiola´s rotation policy|
|Ajax expect in-demand Bazoer to exit|
|Not even the Golden Boot would get me an England recall, says Defoe|
|MLS MVP Villa has no interest in Premier League move|
|Vidal: I never had a problem with Luis Enrique|
|Ancelotti not keen on Madrid Champions League reunion|
|Zabaleta: Guardiola needs Iheanacho more than ever|
|Ranieri not fearful of Foxes chop|
|Celtic fan arrested for throwing burger at police horse|
|Dad-to-be Lewandowski reveals baby news with goal celebration|
|Klopp´s Liverpool watched Barca at Camp Nou|
|Wenger braced for tough last-16 draw|
|Roberts buoyed by Guardiola acclaim|
|Gladbach´s Alvaro Dominguez retires at 27|
|Simeone satisfied with aggressive Atletico|
|Emery aims to bounce back after European disappointment|
|Madrid demand ´maximum respect´ for Ronaldo|
|No pressure on Iheanacho to fill Aguero´s boots - Guardiola|
|Cocu praises PSV effort despite European exit|
|Ancelotti hoping for confidence boost|
|Gunes takes blame for Besiktas thrashing|
|Vitoria upbeat despite Napoli defeat|
|Arda Barca future brighter after hat-trick|
|Le Tissier makes ´naked massage´ claims|
|´He has a smell for the goal´ - Wenger hails hat-trick hero Lucas|
|Guardiola to assess Roberts situation at end of season|
|Napoli have no fear - Reina|
|Iheanacho shines but Guardiola concerns lie deeper|
|Barcelona pass masters set new Champions League benchmark|
|Dybala ready to return for Juventus|
|PSV 0 Rostov 0: Russians seal Europa League spot with stalemate|
|Paris Saint-Germain 2 Ludogorets 2: Di Maria rescues draw but PSG miss out on top spot|
|Benfica 1 Napoli 2: Super-sub Mertens seals top spot|
|Dynamo Kiev 6 Besiktas 0: Nine-man visitors crash out|
|Messi fails to match Ronaldo´s Champions League record|
|Basel 1 Arsenal 4: Lucas hat-trick helps Gunners clinch top spot|
|Manchester City 1 Celtic 1: Roberts scores against parent club|
|Bayern Munich 1 Atletico Madrid 0: Lewandowski free-kick the difference in Bavaria|
|Barcelona 4 Borussia Monchengladbach 0: Arda hat-trick lights up Barca procession|
|Zidane ´more sympathetic´ than other Madrid coaches, says Ramos|
|Bartra eager to square up against old rivals Madrid|
|Pardew´s job is ´totally safe´ - Palace chairman|
|Shelvey and Dummett red card appeals successful|
|Lopes doubtful for Sevilla clash due to lack of sleep|
|Real Madrid test will bring the best out of Aubameyang - Tuchel|
|Slutsky to leave CSKA Moscow|
|Genesio hails Valbuena character|
|Spurs hungry for Europa League football - Vertonghen|
|Deschamps claims Pogba is unlikely to ever win Ballon d´Or|
|Xavi: Barca have not lost their essence|
|Strootman banned for sparking Rome derby brawl|
|Mkhitaryan accepts blame for slow start at United|
|New York City star Villa named MLS MVP|
|Ramos distances himself from tax avoidance scandal|
|Witsel casts doubt on January Juventus switch|
|Schmidt has faith in misfiring Hernandez|
|Gabriel not happy at Inter, says agent|
|PSG just another game for returning Balotelli|
|Dortmund eye top spot and a goalscoring record - Champions League in Opta numbers|
|Southgate bids farewell to England assistant Lee|
|Europa League can help Spurs end Wembley hoodoo - Pochettino|
|Watmore´s season ended by injury|
|Zidane: Dortmund clash is a final|
|Gotze to miss Madrid test|
|Lacazette to ponder Lyon future|
|Griezmann lauds ´world class´ Aubameyang|
|Sporting´s in-demand Gelson going nowhere, claims agent|
|FA appoints new lead QC as scope of child sexual abuse review is outlined|
|Hodgson: England players failed to grasp my instructions|
|Xhaka pleads for time to settle in at Arsenal|
|Kluivert urges PSG to learn from Montpellier humbling|
|Augenthaler tips Bayern captain Lahm to play on|
|Rodgers: Celtic growing in confidence in Europe|
|Brazil-Colombia friendly proposed to raise money for Chapecoense|
|If you don´t play, you can´t shine - Hummels urges Mourinho to believe in Mkhitaryan|
|Ronaldinho ready to help Chapecoense|
|United can still finish top four - Guardiola|
|Bale´s ankle ´feeling better every day´|
|Sarri: Napoli in Lisbon to win|
|Watford and West Brom hit with FA charge|
|Karanka delighted with Boro´s game management|
|Middlesbrough 1 Hull City 0: Ramirez sinks sorry Tigers|
|Can Arsenal break the Basel curse? The Champions League in Opta Numbers|
|Everton confirm serious knee injury for Bolasie|
|Stam set for Old Trafford reunion in FA Cup third round|
|Sanchez, Ozil contract talks not just about money - Wenger|
|It is normal my son says I´ll coach Inter, I will - Simeone|
|Chapecoense confirmed as Copa Sudamericana champions|
|Sullivan backs Bilic to reverse Hammers´ fortunes|
|It was close...very close - Hummels reveals level of Man United interest|
|What You Might Have Missed: An FA Cup comeback of all comebacks and Monaco can´t stop scoring|
|Preston fans to be refunded from Beckford, Doyle fight fines|
|In-demand Lindelof ´happy to stay at Benfica´|
|FA charges City and Chelsea for late fracas|
|Darmstadt sack coach and sporting director after dismal run|
|Anyone who says they would not sign Messi is a liar! - Caballero|
|Roberto warns Madrid: Barcelona will cut the gap|
|Emery: Champions League top spot was always PSG´s priority|
|Guardiola brands Sanchez transfer rumours as lies|
|Boateng ruled out of Bayern´s clash with Atletico|
|FA confirms four-game ban for Aguero|
|Blatter FIFA ban remains after CAS dismisses appeal|
|Luis Enrique: I don´t give a damn about beating Gladbach|
|Emre hits out at Allardyce´s style... and slams his chewing gum|
|Bravo the world´s best goalkeeper, says Pellegrini|
|Ibrahimovic: I know how to kick someone and make him fall asleep|
|Barcelona and Real Madrid would not win 5-0 in Ligue 1 - Verratti|
|Seedorf out, Eriksson in at second-tier Chinese club|
|Tevez to China? Shanghai Shenhua claim ´breakthrough´ in talks|
|´English football is not more pure´ – Pochettino will not slam Alli for ´dive´|
|Gudjohnsen offers his services to Chapecoense|
|Savicevic: Champions League qualification paramount for Milan|
|Wenger: West Ham could take two years to settle|
|River Plate play in green as tribute to Chapecoense|
|Roberto Carlos open to coaching in A-League|
|Wenger confident there is more to come from Arsenal|
|Kane wants to see out career at Tottenham|
|Aguero challenge labelled ´crazy´ by disappointed Cahill|
|Mourinho ´has nothing to hide´ over tax affairs|