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'
|Benfica deserved to win, says Jesus|
|Rodgers will ´deal with´ shirt-swapping Balotelli|
|Jardim disappointed with Monaco attack|
|Tevez calls for mental change at Juventus|
|´Proud´ Ronaldo not focusing on Raul record|
|Wenger hails Arsenal spirit|
|Klopp salutes quick start in Dortmund rout|
|Ludogorets 1 Basel 0: Bulgarians secure historic triumph|
|Bayer Leverkusen 2 Zenit 0: Russians´ streak ends at 16|
|Anderlecht 1 Arsenal 2: Gibbs, Podolski score late for visitors|
|Olympiacos 1 Juventus 0: Roberto heroics help win it for hosts|
|Atletico Madrid 5 Malmo 0: Koke stars as Simeone´s men ease to win|
|Monaco 0 Benfica 0: 10-man visitors claim dour draw|
|Liverpool 0 Real Madrid 3: Ronaldo scores again as European champions stroll on Merseyside|
|Galatasaray 0 Borussia Dortmund 4: Klopp´s men rampant in Istanbul|
|Championship Preview: Watford and Boro battle at the top|
|Platini demands CAF apology|
|Metalist 0 Legia Warsaw 1: Dazzling Duda seals victory|
|Martinez: Lille double-header like a cup final|
|Evans seeks ´second chance´ after release from prison|
|MLS Preview: Whitecaps, Timbers chase final play-off spot|
|Bellusci is no racist - Cellino|
|Thai Premier League Review: Chonburi go top, Air Force Central and Songkhla relegated|
|UEFA rule out CSKA punishment|
|J.League Review: Urawa extend lead despite draw, Tokushima relegated|
|UEFA investigating Luiz Adriano allegations|
|Bentaleb out of Asteras Tripolis clash|
|Rafael: Chelsea are beatable|
|Cannavaro assets seized in tax fraud probe|
|Leverkusen ordered to repay over €16m to former sponsor|
|Remy hopeful of facing United|
|Gerrard: I may regret Real snubs|
|FA investigating Jerome racism allegation|
|Alcaraz takes over at Levante|
|Wenger backs Martinez to take his chance|
|Benatia: Media judged me too soon|
|CAF hits out at Platini|
|Mourinho calm over striker shortage|
|Kompany fumes at presence of CSKA fans|
|CONCACAF Champions League Review: Timbers eliminated|
|Jerome complains of racial abuse|
|Lanus 1 Cerro Porteno 1: Paraguayans reach quarters|
|A-League Preview: Another blow for Melbourne City ahead of derby|
|Luiz Adriano alleges racism|
|Yermakovich laments lack of quality, errors|
|Lopetegui pleased with important win|
|Luiz Adriano overjoyed with record-equalling haul|
|Blanc hails PSG´s fighting spirit|
|Melbourne City confirm Villa departure|
|Mixed feelings for Donis|
|Chelsea are ´serious contenders´ - Simundza|
|Valverde remaining positive|
|Silva slams penalty decision after Sporting loss|
|De Boer unhappy with early Ajax caution|
|League Two Review: Wycombe lose at Exeter, Burton win thriller|
|Championship Review: Derby go top, Birmingham struggles continue|
|Guardiola plays down dominant Bayern win|
|Schalke grateful for controversial penalty win|
|Rakitic takes heart from Barca performance|
|League One Review: Crewe run continues as Preston win again|
|Garcia accepts blame for Bayern mauling|
|UEFA Europa League Preview: Sevilla, Napoli hit the road|
|Drogba delight as Maribor pay the penalty|
|Schalke 4 Sporting Lisbon 3: Choupo-Moting heroics earn Di Matteo incredible win|
|BATE 0 Shakhtar Donetsk 7: Luiz Adriano the five-goal hero|
|APOEL 0 Paris Saint-Germain 1: Late Cavani strike seals victory|
|Barcelona 3 Ajax 1: Messi and Neymar help sink Dutch champions|
|Chelsea 6 Maribor 0: Drogba on target in comfortable success|
|Porto 2 Athletic Bilbao 1: Quaresma leaves it late to ensure maximum points|
|Roma 1 Bayern Munich 7: Guardiola´s men run riot in Rome|
|Slutsky delighted with CSKA spirit|
|Sloppy City frustrate Pellegrini|
|Lille v Everton: Martinez´s men look to continue recovery|
|Tottenham v Asteras Tripolis: Spurs begin big week with group leaders|
|Bale out of Clasico, confirms Ancelotti|
|Galatasaray the perfect test for Dortmund, says Klopp|
|CSKA Moscow 2 Manchester City 2: Visitors remain winless after spurning two-goal lead|
|Rodgers plays down Bale absence|
|Allegri urges Juventus to keep calm|
|Subotic wants confidence-boosting victory|
|Fernandes apologises for Taarabt-Redknapp spat|
|Lopes hopeful of return after mini-stroke|
|Gabi to miss out for Atletico|
|Inter v Saint-Etienne: Mazzarri´s men eye next step to last 32|
|Hasi warns of Arsenal threat|
|Verona hit with fine and partial stadium closure|
|Sunderland players offer fans refund after Southampton mauling|
|Schmidt wants Leverkusen reaction|
|Redknapp: Taarabt the worst professional I have ever come across|
|´I haven´t been up to my full potential´, admits Shaw|
|Flamini: Injuries no excuse for Arsenal form|
|Busquets to miss Ajax clash|
|Bale out of Anfield clash|
|Levante sack Mendilibar|
|Platini talks down Ronaldo´s Ballon d´Or chances|
|Messi and Ronaldo out of this world in UEFA Champions League space race|
|Bring on Bilbao - Lopetegui|
|J.League Preview: Petrovic positive despite Urawa form|
|Argentine Primera Division Review: Calleri inspires Boca|
|Guardiola: Garcia´s Roma reign ´wonderful´|
|Chilean Primera Division Review: Colo Colo claim key win|
|Mata had ´no relationship´ with Mourinho|
|Paraguayan Division Profesional Review: Libertad gain ground, Cerro Porteno held|
|Lovren demands better display|
|´Arrogant´ Van Gaal insists United can catch Chelsea|
|Sociedad loss a ´hammer blow´ - Arrasate|
|Genoa deserved a penalty - Gasperini|
|Passion kept me at Roma - De Rossi|
|Irvine ´bitterly disappointed´, questions Fellaini´s goal|
|Taarabt hits back at Redknapp claims|
|Genoa 1 Empoli 1: Tonelli hands visitors a point|