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'
|Allardyce slams ´rather silly´ Tomkins|
|Rodgers similar to Wenger - Toure|
|J.League Preview: Flying Gamba chasing Urawa|
|Benitez happy to progress|
|Montella: Fiorentina have ´impressive mentality´|
|Ausilio praises Handanovic´s ´remarkable statistics´|
|Pele ´doing fine´, receiving kidney treatment|
|We need to improve - Stambouli|
|Estoril versus PSV postponed due to rain|
|UEFA Europa League Review: Feyenoord and Everton qualify in style|
|Martinez hails Everton perfection|
|Tottenham 1 Partizan 0: Stambouli settles it for Spurs|
|Inter 2 Dnipro 1: Osvaldo strikes as 10-man hosts earn hard-fought win|
|Tottenham-Partizan clash temporarily suspended due to pitch invasions|
|McKinlay named Moyes´ assistant|
|Poyet issues Chelsea challenge|
|Wolfsburg 0 Everton 2: Martinez´s men secure top spot|
|Lambert defends Bent loan move|
|Sunderland v Chelsea: Johnson eyes next major scalp|
|Riera released by Udinese|
|QPR v Leicester City: Pearson aiming to build on positives|
|Galatasaray and Anderlecht face disciplinary proceedings|
|Liverpool v Stoke City: Hughes plotting Anfield success|
|Vermaelen out for four to six months|
|Swansea City v Crystal Palace: Monk looking for positive response|
|Printant to remain Bastia head coach|
|Irvine knew nothing of Berahino drink-driving case|
|Pele admitted to special care unit|
|West Ham v Newcastle United: Allardyce pinpoints vital phase|
|Skripnik agrees three-year extension at Werder|
|Monk rubbishes talk of Michu return|
|FA charges Whelan over comments|
|Burnley v Aston Villa: Lambert laments list of absentees|
|Manchester United v Hull City: Bruce wary of in-form Rooney|
|Hughes hopeful over unwell trio|
|Grant named as Ghana coach|
|Bielsa expecting tough Nantes challenge|
|Basel charged by UEFA following pitch invasion|
|West Brom v Arsenal: Mertesacker refocusing attention after midweek win|
|Colaco banned by FIFA|
|Championship Preview: Derby head to happy hunting ground|
|Hertha Berlin v Bayern Munich: Hosts out to take advantage|
|Taylor injury ´not as bad as first feared´|
|Wilshere out for three months|
|Torosidis suffers calf strain|
|Malaga v Real Madrid: Ancelotti´s men in search of sweet 16|
|England climb FIFA rankings, Germany remain number one|
|Bolasie staying put - Warnock|
|Sewe Sport v Al Ahly: Ivorians eye more history|
|Schalke lose Matip with broken foot|
|Paris Saint-Germain v Nice: Ibrahimovic looks to end Ligue 1 goal drought|
|K. League Preview: Seoul, Steelers tussle for third|
|No complaints over FA charge for Allardyce|
|Redknapp ready for crucial run|
|Zapata targets regular first-team role at Milan|
|Fabregas revels in career-best form|
|Eriksen claims Tottenham struggling to ´connect´|
|MLS Preview: Schmid labels Galaxy ´physical´|
|Costa Rican Primera Division Review: Cartagines secure semi-finals berth|
|Serie A Preview: Roma out to stay in touch with Juve|
|The Strongest 1 Bolivar 1: Capdevila strike saves leaders|
|Sao Paulo 1 Atletico Nacional 0 (agg 1-1, 1-4 on penalties): Colombians reach final|
|Cruzeiro 0 Atletico Mineiro 1 (agg 0-3): Culpi´s men win first Copa do Brasil|
|Malmo´s Hareide furious with referee´s injustice|
|Dermendzhiev elated with Ludogorets display|
|Defour withdrawal stalled Anderlecht|
|Atletico achievement delights Simeone|
|Atletico did ´many´ things well - Michel|
|Raul Garcia promises no let-up from Atletico|
|Missed chances disappoint Rolfes|
|La Liga Preview: Real out to break club record at Malaga|
|Ancelotti praises defence after record-equalling win|
|Klopp: Arsenal deserved it|
|Peruvian Primera Division Review: Alianza Lima falter in Clausura race|
|Allegri targeting top spot after Malmo win|
|Rodgers pleased despite Ludogorets late show|
|Wenger rues Arteta injury|
|Ludogorets 2 Liverpool 2: More misery for Rodgers´ men|
|Malmo 0 Juventus 2: Tevez fires Allegri´s side closer to qualification|
|Anderlecht 2 Galatasaray 0: Mbemba secures third place for hosts|
|Bayer Leverkusen 0 Monaco 1: Ocampos strike stuns dominant hosts|
|Atletico Madrid 4 Olympiacos 0: Hat-trick hero Mandzukic books last-16 spot|
|Basel 0 Real Madrid 1: Ronaldo strike equals club record|
|Arsenal 2 Borussia Dortmund 0: Sanogo and Alexis seal progress|
|´We must believe´ – Villas-Boas wants Zenit progression|
|Bundesliga Preview: Schalke and Bayern out to bounce back from Euro setbacks|
|Jesus bemoans wasted Benfica chances|
|League Two Preview: Promotion rivals meet, leaders tackle basement club|
|Ligue 1 Preview: PSG and Marseille both fighting for top spot|
|Mitchell lands Tottenham role|
|Zenit 1 Benfica 0: Danny eliminates Portuguese champions|
|Deila concerned over Commons´ future|
|Everton quartet doubtful for Tottenham clash|
|Pochettino calls for extra rest|
|FA charges Everton and West Ham|
|Money not a factor for Van der Vaart|
|League One Preview: Bristol City out to stop the rot at Peterborough|
|Heldt: Chelsea hammering unacceptable|
|Mancini encouraged by Inter|
|Cheltenham appoint Buckle|
|Date set for Tonev appeal hearing|
|K. League Review: Steelers preserve advantage, Seongnam boost survival hopes|
|Moses out for several weeks|
|Drogba focused on claiming trophies|
|Bent makes Brighton switch|
|Kone included in Everton squad for Wolfsburg clash|
|Shaqiri can ´probably´ leave Bayern, says Beckenbauer|
|Ramsey backs under-fire Wenger|
|Fabregas clears the air with Ramos|
|Cavani urges Ligue 1 focus|
|Olsson out until new year|
|Sao Paulo´s Toloi confident ahead of second leg|
|Aguero our ´special player´, says Kompany|
|APOEL eye Europa League despite winless road streak|
|Silva disappointed by ´childish´ errors|
|Slutsky happy to keep ´intrigue´ alive|
|A-League Preview: Brisbane begin life after Mulvey|
|Eredivisie Preview: Ajax targeting improvement|
|Shakhtar did not lack motivation - Shevchuk|
|Bayern lament two errors, Guardiola proud|
|Valcke: It will ´take years´ to rebuild FIFA´s reputation|
|Luis Enrique ´never fed up´ of Messi magic|
|Valverde pleased with Bilbao triumph|
|Messi revels in Champions League milestone|
|Loss was a ´crying shame´ - De Boer|
|Suarez relieved to get off the mark for Barca|
|Pellegrini puts Aguero among best in the world|
|Cavani wants top spot|