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'
|Milan on right track - Inzaghi|
|Estoril 1 Vitoria Guimaraes 0: Kleber checks visitors´ momentum|
|Eredivisie Review: PSV in Eagles demolition, AZ downed at home|
|Garcia fumes at missed handball|
|Serie A Review: 10-man Milan frustrate Roma, Cesena rescue point|
|Roma 0 Milan 0: Hosts denied despite Armero red|
|Ligue 1 Review: PSG held at home, Monaco claim fourth win in a row|
|Bundesliga Review: Bremen off bottom with Dortmund win, Augsburg beat Gladbach|
|Blanc frustrated after drab stalemate|
|League Two Review: Moore´s Hartlepool tenure begins with draw|
|Championship Review: Blackpool hit for six, Middlesbrough slip up|
|Luis Enrique enjoying Pedro´s resurgence|
|Scottish Premiership Review: Aberdeen move to second, St Mirren misery continues|
|Koeman delighted with clinical Southampton|
|Pochettino tips in-form Kane for England call-up|
|Dortmund are ´idiots´ - Klopp|
|Allardyce hails ´outstanding´ Downing|
|Young admitted fault after Agbonlahor dismissal, says Lambert|
|Pearson not concerned with speculation|
|Bruce: Hull simply not good enough|
|Everton must improve - Martinez|
|Irvine rues sloppy defending|
|Cruz Azul 1 Auckland City 1 (2-4 on pens): Plucky New Zealanders claim third|
|Austin an example for young strikers - Redknapp|
|Dyche takes pride in White Hart Lane defeat|
|Arabian Gulf League Review: Al Shabab strike late to sink Al Dhafra, top two win|
|Swansea win vindicated changes, says Monk|
|Van Gaal frustrated by dropped points at Villa|
|Paris Saint-Germain 0 Montpellier 0: Champions frustrated by Courbis´ men|
|League One Review: Wilson gains landmark win as Bristol City and Swindon falter|
|Hull City 0 Swansea City 1: Monk´s men celebrate rare away win|
|Southampton 3 Everton 0: Koeman´s side back to winning ways|
|Aston Villa 1 Manchester United 1: Visitors held despite Agbonlahor dismissal|
|QPR 3 West Brom 2: Austin treble lifts hosts out of drop zone|
|Barcelona 5 Cordoba 0: Suarez opens Liga account in emphatic win|
|Tottenham 2 Burnley 1: Lamela stunner wins it for Spurs|
|West Ham 2 Leicester City 0: Carroll, Downing seal the points|
|Werder Bremen 2 Borussia Dortmund 1: Hosts off the bottom by adding to Klopp´s woes|
|Kerala Blasters 0 Atletico de Kolkata 1: Last-gasp Rafique seals inaugural title|
|Warnock fumes over disallowed goal|
|Pellegrini hails Silva quality|
|Betis announce Mel return|
|Huntelaar signs Schalke extension|
|Juventus v Napoli: Allegri backs Tevez to make difference|
|Stoke City v Chelsea: Mourinho calls for adaptability|
|Manchester City 3 Crystal Palace 0: Silva strikes twice as champions go joint-top|
|A-League Review: City snatch Melbourne derby honours, Glory pull further clear|
|Mancini: Inter can finish third|
|Sterling revels in Golden Boy award|
|Pellegrini: You never win a title in December|
|Rodgers bemoans Sanchez snub|
|Ayew confident Marseille can beat title rivals|
|Mercier: San Lorenzo won´t roll over to Real Madrid|
|Lukaku: I´m still 21|
|Mainz bemoan ´tragic´ loss to Bayern|
|Rojo ruled out for Villa trip|
|Lopetegui thrilled with Porto response|
|Guardiola pays tribute to battling Mainz|
|Orlando City sign Shea|
|Porto 4 Vitoria Setubal 0: Brahimi inspires late drama|
|League Two Review: Burton held, Cambridge snatch late point|
|Millwall 0 Bolton Wanderers 1: Pratley nets winner for visitors|
|Lens 2 Nice 0: Cyprien and Coulibaly lift hosts|
|Celta Vigo 0 Almeria 1: Nolito miss proves costly|
|Heerenveen 0 ADO Den Haag 0: Visitors´ winless streak extended|
|Mainz 1 Bayern Munich 2: Guardiola´s men break Christmas points record|
|Blanc unconcerned by league placing|
|United targeting title - Carrick|
|Soldado ´ashamed´ at not performing for Spurs|
|Ramos to wait and see on fitness for final|
|Garcia wins appeal against two-match ban|
|Hart signs new City contract|
|Hereford United wound up|
|Pearson given touchline ban for fan row|
|FIFA confirms third-party ownership ban|
|Inter v Lazio: Ranocchia wants to build momentum|
|Rodgers hits out at Sterling criticism|
|Pardew backs Colback to shine against Sunderland|
|Minimal recovery time a concern for Bauza|
|Liverpool v Arsenal: Wenger out to avoid repeat performance|
|Newcastle United v Sunderland: Pardew calls for a derby day show|
|Adebayor available for Burnley clash|
|Athletic Bilbao v Atletico Madrid: Simeone´s men eye fitting response|
|Targett commits to Southampton|
|Garcia vows to attack Milan|
|City still without strike trio for Palace test|
|Courtois set for return at Stoke|
|Di Maria set for possible United return at Villa|
|Neymar in frame for Cordoba match|
|FIFA to publish Garcia report|
|Liverpool will not appeal Balotelli ban|
|A-League: Newcastle Jets 2 Adelaide United 1|
|Fournier eyes Fekir stay and attacking reinforcements|
|Abidal announces retirement ahead of potential Barca return|
|Redknapp: Crouch deal not possible|
|Klaassen laments Ajax ´off-day´|
|Wenger not fearful of another Anfield nightmare|
|Whelan wants to extend Stoke stay|
|Kalou eyes Hertha exit|
|Fellaini: Belief growing of title tilt at United|
|Benteke: Villa transfer request was a mistake|
|Gerrard urges Sterling to stay put|
|Pardew calls for calm ahead of derby clash|
|Kerala Blasters v Atletico de Kolkata: Luis Garcia talks up team ahead of final|
|Monk wants three new Swansea signings|
|Koeman plays down Sneijder link|
|Howard targets another World Cup|
|Inzaghi prepared for Stadio Olimpico atmosphere|
|Toronto expect Defoe to return|
|Rodriguez suffers injury setback|
|Klopp denies Dortmund departure plans|
|Copa del Rey Review: Bilbao and Elche edge through, Madrid derby beckons|