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'
|Schweinsteiger feels ´deep gratitude´ for Germany career|
|Swansea complete deal for Barnsley defender Mawson|
|Perez delight at Arsenal signing|
|Inter complete Gabriel capture|
|Mariappa returns to Watford|
|Aguero charged over Reid elbow|
|Hart pictured with Torino shirt ahead of loan switch|
|Albrighton pens fresh Leicester deal|
|Hull seal club-record Mason swoop|
|Pjanic confident Juve debut is on the horizon|
|Lucescu confirms Juventus interest in Witsel after Everton snub|
|Messi trains ahead of Argentina return|
|Villa sign Kodjia in a deal worth up to £15m|
|Marshall leaves Cardiff and heads to Hull|
|Rosicky returns to Sparta Prague|
|Gnabry close to Werder Bremen switch|
|Arsenal complete Perez deal|
|Celtic sign Gamboa from West Brom|
|Remy joins Palace on season-long loan|
|Kante like a rat - Hazard|
|Rooney proud to break England outfield caps record|
|Rooney to quit international football after World Cup|
|Barcelona sign €30m Valencia striker Alcacer|
|Koke and Vazquez welcome Laporte to Spain fold|
|Schweinsteiger has no ´personal problems´ with Mourinho|
|Alcacer, Hart, Wilshere and the deadline-beating deals still to come|
|Antonio thought first England call-up was banter|
|Premier League a completely different market - Heidel|
|Lens completes Fenerbahce loan move|
|Pescara awarded points after Sassuolo field ineligible player|
|Lyon calm Lacazette injury fears|
|Bamford joins Burnley on loan|
|Van Basten to leave Netherlands´ backroom staff for FIFA role|
|Ventura perfect for Italy - Verratti|
|Martial needs to be more consistent - Deschamps|
|Verratti not happy at PSG - Ventura|
|Ventura: I´ll probably manage Chelsea when Conte leaves|
|Bartomeu: Barca discussing new contract with Messi|
|Bauza: No doubts over Messi motivation|
|Schmeichel targets quick return after surgery|
|Giovinco to help aid earthquake victims in Italy|
|Ancelotti backs Madrid for LaLiga and Ronaldo to be top goalscorer|
|Gomes: Portugal can deal with Ronaldo absence|
|Sterling reveals Guardiola impact|
|Fiorentina deny approach for Chelsea target Alonso|
|Allardyce confirms Rooney retains England captaincy|
|Hart to join Torino – agent|
|Sanches withdrawn from Portugal squad|
|Sporting CP issue Adrien Silva clarification amid Leicester links|
|Watford confirm Okaka signing|
|Manchester City outcast Zuculini seals Rayo Vallecano loan switch|
|Dembele offers something different - Deschamps|
|Sunderland would just love to get rid of me - Lens|
|No Casillas in Spain squad represents a ´new era´, says Ramos|
|Zenit defender Criscito could return to Italy, claims agent|
|Barcelona reveal Messi hamstring injury|
|Modric named new Croatia captain|
|Napoli announce Rog signing|
|De Boer is building something at Inter - Morratti|
|Keane eyes coaching career after international retirement|
|Bravo left out of Chile squad for family reasons|
|West Brom announce Chadli signing|
|Former Dodgers owner set for Marseille purchase|
|Ferdinand: I reached out to Wenger|
|Holgate has big quality for a young player - Koeman|
|Manchester United want to keep Rojo, says agent|
|Low not concerned by captaincy as Germany bid farewell to greats|
|Aguero pulls out of Argentina squad|
|Howedes: Germany must prove themselves all over again|
|Ventura close to tears on first day of Italy training|
|Torino interested in City outcast Hart|
|Adrien Silva hoping to seal ´exceptional´ Leicester switch|
|Boufal joins Southampton from Lille for club-record fee|
|Villa outcast Lescott joins AEK Athens|
|Milner: I´m learning left-back role as fast as I can|
|Allardyce ready for Hart transfer disruption|
|´Door always open´ for Barkley - Allardyce|
|Xhaka like Petit, claims Wenger|
|Coric: I was a medical away from joining Liverpool|
|Pasalic keen to put injury troubles behind him at Milan|
|Guardiola delighted with Sterling form|
|Rooney should retire from England duty - Shearer|
|Hazard can ´decide´ the title - Ivanovic|
|Allardyce hails ´outstanding´ Antonio|
|Belgium can make history - Henry|
|Nice president: Call Balotelli and tell him we need a striker|
|Modric would like to see out career in Madrid|
|Geromel replaces Caio in Brazil squad|
|Mustafi: Ozil convinced me to join Arsenal|
|Pardew confirms ´one or two´ more signings|
|MLS Review: Kaka brace denies NYC top spot, Timbers beat Sounders|
|Mihajlovic: I won´t waste anymore breath on Maksimovic|
|Okon named Central Coast Mariners coach|
|´Special´ Rashford will get chance - Rooney|
|Injury forces Schurrle out of Germany squad|
|Burke snubs Premier League interest to join RB Leipzig|
|Guardiola: Nasri has a future at City, if he wants it|
|Klopp confident ´all will be good´ with Sturridge|
|Emery confident PSG will bounce back|
|Athletic may strengthen squad - Valverde|
|Fabregas dismisses exit rumours, committed to Conte and Chelsea|
|De Boer encouraged as Inter´s wait continues|
|Barca ´strengthened´ by Luis Enrique´s 100th win|
|Fekir to undergo knee operation|
|Monaco 3 Paris Saint-Germain 1: Ligue 1 champions suffer early loss|
|Aguero facing possible Manchester derby ban|
|Athletic Bilbao 0 Barcelona 1: Rakitic strike extends Barca´s strong start|
|West Ham´s Antonio handed first England call-up|
|Guardiola ´so optimistic´ after Man City´s perfect start|
|Inter 1 Palermo 1: Icardi gets De Boer´s men off the mark|
|Credit Guardiola for boost in form, says Sterling|
|Manchester City 3 West Ham 1: Hosts stay perfect under Guardiola|
|Cavani won´t return to Napoli - De Laurentiis|
|Pulis puts 48-hour deadline on Berahino future|
|Zaza awaits ´new adventure´ at West Ham|
|Karanka open to transfer ´surprises´ after strong Middlesbrough start|
|Dost completes Sporting move|
|Allardyce wanted N´Zonzi for England|
|World Cup could be expanded - Infantino|
|West Brom 0 Middlesbrough 0: Booed Berahino benched for dour draw|
|Gyan´s ´destiny´ in England, Sunderland return an option|
|Zidane wanted Pogba and Madrid are weaker without him - Raiola|
|Juventus end Matuidi pursuit|
|´He´s freaking amazing!´ - Balogun hails Dortmund´s Dembele|
|Thohir thrilled as Inter confirm Joao Mario signing|
|Fabinho expects Monaco stay despite Manchester United links|
|Infantino has Blatter wine cellar removed as part of FIFA reform commitment|
|West Ham seal Zaza loan|
|Joao Mario posts heartfelt thanks to Sporting after record-breaking Inter move|
|Aguero: I´m not competing with Ibrahimovic|
|Mihajlovic: Maksimovic is dead to me|
|Risdon replaces Wright for Socceroos|
|MLS Review: DC United in goal-fest, Impact stun Toronto|
|Schmeichel to undergo surgery|
|Milik revels in ´dream´ brace as he ignores Higuain shadow|
|Rossi to join Celta Vigo|
|Ayestaran: Barcelona target Alcacer unable to compete|
|Simeone: Winless Atletico must remain calm|
|Griezmann: Atletico must improve or face relegation fight|
|Sterling ´feels the love´ at City - Guardiola|
|Stones glad he did not end up at Chelsea|
|James impact earns Zidane´s praise|
|Montella bemoans AC Milan´s indiscipline|
|Leganes 0 Atletico Madrid 0: Returning Griezmann fails to inspire turgid visitors|