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'
|Ancelotti expects to stay at Real despite speculation|
|Play-off finals to go ahead despite discovery of World War II bomb|
|Mourinho lauds ´legend´ Lampard|
|Milan v Torino: Shadow of Ancelotti hangs over Inzaghi|
|Speroni extends Palace contract|
|Ramsey issues QPR warning|
|Valverde signs new Bilbao contract|
|Welbeck could miss FA Cup final and England double header|
|League One play-off final Preview: Preston hoping to end hoodoo|
|Rodgers expects Sterling talks to resume|
|Martinez dismisses Oviedo exit talk|
|Neil hoping to draw on previous play-off success|
|Cisse weighing up offers from USA, India and Poland|
|Hazard announced as Premier League´s Player of the Season|
|United should sign Cech if De Gea leaves - Scholes|
|Copa Libertadores Review: Cruzeiro draw first blood away from home|
|MLS Preview: Wondolowski poised for 100-goal club|
|Ligue 1 Preview: Monaco, Marseille, Saint-Etienne battle for Champions League spot|
|Bundesliga Preview: Relegation battle set for dramatic end, Dortmund to farewell Klopp|
|Serie A Preview: Radu in doubt for crucial Rome derby|
|Stankovic denies talk of Inter return|
|Benitez would be ´happy´ to manage Real - agent|
|Newcastle not expecting favours from Allardyce - Carver|
|Lacazette can be ´world class´ - Houllier|
|Hodgson defends Sterling|
|Eredivisie Review: Heerenveen and Vitesse seize initiative|
|Prince Ali confirms World Cup expansion plans|
|Giroud hits back at ´dull´ Henry over Arsenal comments|
|Real Madrid v Getafe: Ancelotti banned in potential Bernabeu farewell|
|Stoke secure permanent Wollscheid deal|
|Ligue 1 relegation places cut to two|
|Bayern Munich v Mainz: Champions out to ring in title with return to form|
|Granada v Atletico Madrid: Tiago ready for difficult final day|
|Luis Figo statement on FIFA president candidacy withdrawal|
|Barcelona v Deportivo La Coruna: Xavi prepares to bid farewell to La Liga|
|New Liverpool deals for Ibe and Flanagan|
|The tooth hurts for Hazard as he looks set to miss Sunderland clash|
|Juventus v Napoli: Double winners prepare to celebrate|
|Luis Figo withdraws from FIFA presidency race|
|Bielsa not expecting contract offer from Marseille|
|Hodgson: No England rift with United over Shaw|
|Genoa v Inter: Mancini´s men chase European berth|
|Borussia Dortmund v Werder Bremen: Klopp looks to sign off with European qualification|
|Bartomeu hits out at Ancelotti to Barca rumours|
|Paris Saint-Germain v Reims: Parisians ready to celebrate title triumph|
|I have not spoken to any clubs, insists Klopp|
|League Two play-off final Preview: Ainsworth claims underdog status|
|Sheringham named Stevenage boss|
|Lawless banned for football betting|
|Defence should be United´s priority, says Stam|
|Klopp vows to ignore nostalgia at final home game|
|Hodgson excited by new England call-ups|
|Xavi: Barca will survive without me|
|Benzema sustains hamstring injury|
|Maiden England call-ups for Austin, Vardy and Heaton|
|Kramer relishing Leverkusen return|
|Xavi confirms Barcelona departure|
|Sterling ´definitely not signing´ new Liverpool deal - agent|
|Herrera eyes second-season improvement|
|Kane plans long Tottenham stay|
|Schmidt signs new Leverkusen deal|
|Sterling should stay at Liverpool, says Redknapp|
|Van Praag withdraws from FIFA presidential race|
|Financial fair play here to stay, warns Platini|
|Zidane: Gerrard and me are alike|
|Drobny ruled out of Hamburg finale|
|Defoe: We want Advocaat to stay|
|Zorc expects Hummels to stay|
|Wilshere happy with position|
|Moreno talks up Europa League|
|Santa Fe 1 Internacional 0: Mosquera nets injury-time winner|
|Sporting Kansas City 4 New England Revolution 2: Nemeth inspires victory|
|Dunga calls up Fred, Felipe Anderson for Olympic trials|
|Koke wants to be Atleti´s Gerrard|
|Tinkler: FFA are ripping off owners|
|Klopp will excel at big club - Feulner|
|Allegri concedes cards fell Juve´s way|
|Estoyanoff cops six-game ACL ban for punching|
|Desailly: Mourinho would have won title with City|
|Teary Advocaat delighted to silence the Sunderland doubters|
|Pioli bemoans Lazio´s lack of luck|
|Chiellini salutes Juve fight after Coppa triumph|
|Maldini heads US franchise Miami FC|
|Wenger bemoans Arsenal fatigue|
|Advocaat to decide on Sunderland future next week|
|Juventus 2 Lazio 1 (aet): Matri keeps treble dream alive|
|Arsenal 0 Sunderland 0: Wearsiders ensure Premier League safety|
|AFC Champions League Review: Gamba take big step towards last eight|
|FIFA sponsors voice concern over Qatar working conditions|
|CSKA Sofia denied competition licences|
|Sampaoli cuts Chile squad to 26|
|Israel FA unlikely to be banned, suggests Blatter|
|Barton backs ´breath of fresh air´ Ramsey´s QPR deal|
|Adebayor considered suicide over family issues|
|Schmeichel: United can move on from De Gea|
|Fabregas ban cut to one game|
|FIGC deny Genoa a UEFA licence|
|Watford secure Gomes for Premier League return|
|Lewandowski and Boateng clash in Bayern training|
|Blackpool handed FA charge|
|Almeria to learn fate next week|
|Nimes to stay in Ligue 2 following appeal|
|Rosler named Leeds head coach|
|Sheringham set for Stevenage|
|Zanetti hopeful over Inter swoop for Toure|
|Simeone: Work ethic crucial to Atletico success|
|Southgate never considered Sterling Under-21 call|
|Dundee United clarify Newcastle Jets bid|
|Kane included in Under-21 squad|
|Overmars warns United off Cillessen|
|Carver tells Newcastle fans: Put all your differences to one side|
|Real Madrid perfect for Pogba - Desailly|
|Ravanelli backs Juve for treble success|
|Ward-Prowse eyeing Etihad upset|
|Bruce issues rallying cry ahead of crucial weekend|
|Van Gaal steals show at United awards evening|
|FFA revoke Newcastle Jets´ licence|
|Dundee United bid to buy Newcastle Jets|
|Altidore out for up to five weeks, Gold Cup campaign in doubt|
|Emelec 1 Tigres UANL 0: Bolanos sinks Mexican visitors|
|Wenger hails underappreciated Coquelin|
|Giggs: It´s strange celebrating United´s Champions League spot|
|Advocaat still unsure of future|
|CONMEBOL dismisses Boca´s appeal|