Swansea ensured their place in the last 32 of the UEFA Europa League, despite a 1-0 defeat away to St Gallen on Thursday.
Michael Laudrup's men went into their final Group A encounter knowing that a draw would be enough to see them progress to the knockout stages.
Even with a slip-up, only a three-goal swing and a victory for Kuban Krasnodar over Valencia would have been enough to see the Welsh club eliminated from the competition.
St Gallen - playing for nothing more than pride - struck the winner 10 minutes from time, as Marco Mathys found the net from close range.
Swansea could not respond, but the result was made immaterial by Valencia's 1-1 draw with Kuban in Spain.
Wilfried Bony returned from his hamstring injury to solve Laudrup’s striker problems, the Ivorian coming in as part of six changes made by the visitors from their 1-1 draw against Hull City, with Wayne Routledge and Alejandro Pozuelo also included.
St Gallen, meanwhile, made just one alteration from their 2-0 win over Sion, Marcel Herzog replacing Daniel Lopar in goal.
Swansea were the first to have an effort on goal after eight minutes as Roland Lamah curled wide of the post from the edge of the area.
But having survived that scare, the hosts were dealt a blow shortly afterwards when striker Goran Karanovic - who has 12 goals to his name in all competitions this season - was replaced by Alhassane Keita after suffering a hamstring injury.
Chances proved few and far between for the rest of the first half, with the two sides reduced to speculative efforts from long range.
However, Swansea perhaps should have taken the lead after 32 minutes when Lamah found space on the edge of the penalty area only to fire narrowly off target.
Bony went close immediately after the half-time interval, but they had goalkeeper Gerhard Tremmel to thank for keeping them on level terms a few moments later as he produced a fine save to deny Mathys.
And the German was forced into action shortly before the hour mark to keep out Roberto Rodriguez's effort after the winger had beaten the Swansea offside trap.
Fortune favoured Swansea for much of the second half, with only the woodwork preventing Sebastien Wuthrich's free-kick from finding the net.
Defender Chico Flores went off with an injury for Swansea shortly after that scare, and their defence looked to have finally been breached when Neil Taylor bundled the ball into his own net under pressure, however, the goal was ruled out for a push by Wuthrich.
Swansea's defensive efforts became more desperate in the closing stages, Jose Canas clearing a Mathys header off the line, but the Swiss club finally snatched a deserved victory when the same player volleyed home Wuthrich's left-wing cross.
A tense finale followed for Swansea, but as news of Kuban's draw in Valencia filtered through, their progress was confirmed.
|Coach: J. Saibene|
for G. Karanović 13'
for R. Rodriguez 59'
for M. Mathys 88'
|Neymar will re-sign with Barca, promises father|
|Berisha extends Victory stay|
|Arnold backs fans amid A-League boycott|
|Perez happy at Newcastle|
|Klopp can´t forget ´f***ing´ Palace loss|
|Mihajlovic: Milan didn´t expect extra time|
|Carvalhal hopes cup run spurs Wednesday to league success|
|Coppa Italia Review: AC Milan survive scare, Torino thrash Cesena|
|Hughes happy with rotation policy after League Cup win|
|Football League Review: Burton win to go top of League One|
|Atletico still uncomfortable - Simeone|
|AC Milan 3 Crotone 1 (aet): Bonaventura and Niang extra-time strikes send hosts through|
|Leganes 2 Granada 1: Segunda Division side threaten upset|
|Ligue 1 Review: Leaders Paris Saint-Germain held on the road|
|City thrashing cruel on Hull - Bruce|
|City thrashing cruel on Hull - Bruce|
|Pellegrini: Silva brings style back to City|
|Reaching last four is ´terrific´ - Martinez|
|Lukaku urges Everton to push on|
|FIFA sponsors call for ´independent oversight´ of reforms|
|Stoke City 2 Sheffield Wednesday 0: Potters end visitors´ League Cup run|
|Manchester City 4 Hull City 1: De Bruyne double books semi-final spot|
|Middlesbrough 0 Everton 2: Deulofeu and Lukaku on target in routine win|
|Reus Deportiu 1 Atletico Madrid 2: Third-tier hosts make life difficult for Atleti|
|Amnesty International critical of Qatar, FIFA|
|Angers 0 Paris Saint-Germain 0: Cavani fails to make his mark|
|Ramos: Madrid fight for Undecima every day|
|Silver screen awaits for Vardy?|
|Del Bosque noncommittal on Aduritz form|
|Dybala: Juventus´ slow start normal|
|Koeman confident Southampton can match Liverpool|
|Venezuela stars issue quit threat to FA|
|Moreno agent opens door to Real Madrid offer|
|Herrera: I´m very happy at Manchester United|
|Lars Bender undergoes ankle surgery|
|Delneri takes over at Verona|
|Bellerin: I did not know how to defend until I joined Arsenal|
|Panathinaikos hit with three-point penalty after violence|
|Martial and Depay unhappy under ´selfish´ Van Gaal - Parker|
|Injured Carvajal set to miss Cadiz tie|
|Klopp vows to play strongest Liverpool team against Southampton|
|Ronaldo rested for Copa clash|
|Sanchis implies Neymar provoked Isco kick|
|Benitez: I have no problem with James|
|Luis Enrique plays down Suarez Ballon d´Or omission|
|Sergio Ramos is right - football is cyclical, says Luis Enrique|
|Klopp defends Mignolet amid Ter Stegen rumours|
|Boksic backs Mandzukic to get 20 goals for Juve|
|Neymar hails ´great friends´ Messi and Suarez|
|Chelsea submit planning application for new stadium|
|French sports people need to be exemplary - Valls|
|Moyes: Valencia job has come too soon for Neville|
|Napoli loss ´doesn´t change anything´ for Mancini|
|Ronaldo ´uncomfortable´ as a number nine, claims Madrid great Sanchez|
|Manchester City receive $400m Chinese investment|
|Messi: Ronaldo deserves Ballon d´Or nomination, but I´d prefer Suarez|
|Moyes open to another European gig|
|Everton welcome cup pressure - Martinez|
|Casillas open to MLS move|
|Hughes: Butland going nowhere|
|Milner eyes trophies at ´exciting´ Liverpool|
|Napoli became anxious - Sarri|
|Inter did not deserve to lose - Mancini|
|Messi beats Ronaldo to top prize at La Liga awards|
|Bolton Wanderers 1 Brentford 1: Smith watches on as strugglers snatch point|
|Napoli 2 Inter 1: Higuain at the double as hosts go top|
|Lewandowski: Less pressure on me than Aubameyang|
|Defoe, Larsson to miss Arsenal match|
|Sassuolo 1 Fiorentina 1: Di Francesco´s side extend unbeaten home run|
|Barcelona took ´a step forward´ without Messi - Busquets|
|Unfair to blame Garcia for Roma form - Zanetti|
|Southampton v Liverpool: Returning stars have Ibe in buoyant mood|
|Lewandowski´s five-goal haul recognised for four records|
|Barcelona v Villanovense: Holders get second crack at minnows|
|Verona sack Mandorlini|
|Valencia confirm Nuno departure|
|Premier League clubs reveal agent fees|
|Stoke will not underestimate Sheffield Wednesday – Hughes|
|Robben wants Guardiola to stay at Bayern|
|Aguero allays foot injury concerns|
|Cadiz v Real Madrid: Pepe calls for hard work in Andalusia|
|Bolton confirm players have not been paid for November|
|Neville takes Valencia training following Nuno resignation|
|Mihajlovic targets Coppa Italia triumph|
|Garde confident Villa will survive|
|Everton to make late call on Barry and McCarthy|
|Davids: Messi is an anomaly but Ronaldo just an athlete|
|Simeone open to January signings following Tiago injury|
|Messi leads nominees for Puskas Award|
|Hummels defends himself after media criticism|
|Messi, Ronaldo and Neymar nominated for Ballon d´Or|
|Luis Enrique, Guardiola and Sampaoli up for World Coach of the Year|
|Chelsea about the team, not just Costa - Ivanovic|
|Kuyt open to Feyenoord extension|
|Barcelona lodge complaint over ex-Madrid duo´s Neymar comments|
|Davies wants Manchester City quarter-final to get crazy|
|Ribery ordeal is over – Rummenigge|
|Smalling: Vardy run opens door to non-League hopefuls|
|Bender relieved to end Dortmund losing streak|
|Mata: Manchester United have six finals in December|
|Vardy reveals painful road to Premier League record|
|Pardew urges Newcastle to back McClaren|
|Russian clubs banned from signing Turkish players|
|Klopp expects Coutinho to face Southampton|
|Valverde: Let´s hope Barcelona don´t sign Aduriz|
|De Bruyne relishing link-up with Silva|
|´Crazy´ Munich could convince Guardiola to stay|
|Defiant Garcia refuses to resign despite Roma slump|
|Monk confident Swansea can turn the corner|
|Bellerin: Arsenal can cope without Sanchez|
|McClaren: Newcastle not panicking|
|Klopp delighted with Sturridge, Henderson returns|
|I wouldn´t swap Lukaku for Vardy - Martinez|
|MLS Review: Timbers, Crew to meet in final|
|Nuno saddened by Valencia departure|
|Morata will become a key player - Allegri|