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'
|UEFA Europa League: Benfica 2 Juventus 1|
|UEFA Europa League: Sevilla 2 Valencia 0|
|Klopp: No United approach|
|Torino confirm Jansson signing|
|Ramires accepts FA charge, banned for four games|
|Serie A Preview: Inter v Napoli|
|Rossi ready to return|
|Premier League Preview: Stoke City v Tottenham|
|Mel targets four points for survival|
|Guilavogui blow for Saint-Etienne|
|Parker calms injury fears|
|We will not ease off - Jedinak|
|La Liga Preview: Real Madrid v Osasuna|
|Monk hopeful for Michu return|
|Cabaye closing in on second Ligue 1 title|
|Lambert intends to stay at Villa|
|Premier League Preview: West Brom v West Ham|
|Klopp: Plenty left to play for|
|Premier League Preview: Swansea City v Aston Villa|
|Ranieri focused on securing second place|
|Premier League Preview: Manchester United v Norwich City|
|Seedorf: Team unity behind Milan improvement|
|Adams expecting raucous Old Trafford|
|J.League Preview: Second meet fourth as leaders face Forlan|
|Premier League Preview: Fulham v Hull City|
|Premier League Preview: Southampton v Everton|
|Ligue 1 Preview: PSG on brink of title, Valenciennes fight for survival|
|CSL Preview: Guangzhou look to build on momentum|
|Olic signs new Wolfsburg deal|
|Olic signs new Wolfsburg deal|
|K-League Preview: Struggling Incheon face leaders Pohang|
|Bundesliga Preview: Bayer Leverkusen v Borussia Dortmund|
|Suarez excited over Liverpool potential|
|Bundesliga Preview: Bayern Munich v Werder Bremen|
|Garcia has one eye on next season|
|CAF Confederation Cup Preview: Kaizer Chiefs in trouble, Al Ahly hold slender lead|
|Beck extends Hoffenheim stay|
|League Two Preview: Wycombe, Bristol Rovers in crunch relegation clash|
|UEFA bans for failing FFP unlikely - Platini|
|Coloccini: Current form not good enough|
|La Liga Preview: Barca seek to close on fatigued Atletico|
|We have underachieved, says Allardyce|
|Neymar ´genius´ will light up World Cup - Carlos|
|Milan deny sale rumours|
|Hughes eyes top-half finish|
|Ridgewell to miss next two games|
|Martinez keen to discuss Traore deal|
|Messi will shine in right ´climate´, Sabella insists|
|Suarez: We have surprised ourselves|
|Lucas thrilled to contribute in edgy PSG victory|
|Lahm rues lack of Bayern killer instinct|
|Sturridge boost massive for Liverpool - Henderson|
|Ronaldo in ´perfect´ condition|
|Lloris blasts Spurs|
|Copa Libertadores Wrap: Lanus advance|
|Klinsmann delighted for in-form Dempsey|
|Costa Rica Primera Division Wrap: UCR seal fourth spot|
|Sturridge hopeful of facing Chelsea|
|Liga MX Preview: Battle for play-off places continues|
|MLS Preview: Rimando on verge of record|
|CONCACAF Champions League: Toluca 1 Cruz Azul 1 (1-1 agg, Cruz Azul win on away goals)|
|MLS: New York Red Bulls 4 Houston Dynamo 0|
|Jesus excited by Juventus clash|
|Pizzi: Europa League semi a career highlight|
|A-League Preview: Wanderers welcome Mariners in semi-final|
|Ancelotti: Real survived without fit Bale, Ronaldo|
|Guardiola: Real ´unstoppable´ on the break|
|Ramos urges Real to be positive|
|Robben ´expected more´ from Real|
|UEFA Champions League: Real Madrid 1 Bayern Munich 0|
|Blanc hails match-winner Matuidi|
|Ligue 1 Wrap: PSG close in on title as Matuidi strike downs Evian|
|AFC Champions League Wrap: Sanfrecce Hiroshima, Bunyodkor leave it late to progress|
|Liverpool reveal Anfield expansion plans|
|Ligue 1: Paris Saint-Germain 1 Evian 0|
|Conte wary of fatigue factor|
|Januzaj opts to play for Belgium|
|Mourinho, Faria, Ramires charged by FA|
|Serie A Preview: Roma v Milan|
|Emery focused on first leg|
|Vorm endorses Van Gaal for United role|
|Hamann: Benitez would be a very good match for United|
|Verbeek reveals disappointment after Nuremberg axe|
|Dorrans can be the difference - Olsson|
|Hoger returns to Schalke training|
|Giggs not ready for United job, says May|
|Thauvin would welcome Bielsa arrival|
|Martinez will not rush Jagielka|
|Bremen to focus on developing young players|
|Brady hoping to win race against time|
|Alexis would take Juve to next level - Ravanelli|
|Champagne criticises ´polarisation´ of European football|
|Moyes breaks silence with dignified statement|
|Butland has learned plenty in Leeds stay|
|Bennett desperate for Norwich return|
|Icardi rumours inevitable, says agent|
|Championship Preview: Relegation likely for Yeovil Town, Barnsley|
|Moratti: Zanetti could have become Inter president|
|Giggs quick to ask for Scholes help|
|Giroud wants Arsenal stay, Wenger new deal|
|World Cup chance excites Ameobi|
|Barcelona transfer ban suspended|
|Rossi returns to training|
|Liverpool owners already planning for next season|
|Verbeek sacked by Nuremberg|
|League One Preview: Shrewsbury must win as relegation battle intensifies|
|Chelsea tie ´completely open´, says Filipe Luis|
|Title race will go to the wire - Pellegrini|
|Farina sacked by Sydney FC|
|Cech suffers dislocated shoulder|
|Ronaldo fitness will not be risked - Ancelotti|
|O´Farrell: Moyes sacking a growing trend|
|Serie A Preview: Juventus out to seal title, Roma host Milan|
|Leicester dominance unexpected, says Pearson|
|Copa Libertadores: Bolivar 1 Leon 1 (3-3 agg)|
|Bundesliga Preview: Nuremberg still fighting for survival|
|No regrets for Leonardo|
|Wilkins backs Ancelotti for United|
|Ayre: Champions League vital to attract stars|
|Mignolet: 30-goal Suarez ´amazing´|
|Giroud: I want to stay|
|Advantage Chelsea, says Simeone|
|Mourinho flags weakened Anfield line-up|