Swansea reached the knockout stages of the Europa League despite a disappointing defeat in the fog and cold of St Gallen.
The Welsh club knew a draw would be enough to guarantee their progression from Group A, but Kuban Krasnodar's failure to beat Valencia in Spain ensured this defeat did not prove costly.
In sub-zero temperatures and with a low fog hindering visibility, the visitors had the better of the opening half with Roland Lamah twice going close.
But they slackened off after the break and were punished when Marco Mathys found the net from close range with 10 minutes to go.
Swansea's preparations for this fixture had been far from ideal after fog and technical issues ensured their journey to Switzerland on Wednesday took over 12 hours.
Some players were also awoken by a shallow earth tremor in the early hours of the morning.
But they managed to take an early control of the match, with Lamah curling just wide and later firing narrowly off-target with a low shot.
However, their hosts were much improved after the break and Roberto Rodriguez was twice denied by Gerhard Tremmel after some poor Swansea defending.
The hosts had a goal chalked off for a push on Neil Taylor but found the winner their efforts deserved when Mathys prodded in a low cross from Sebastien Wuthrich.
Swansea still reached the latter stages of a European tournament for the first time in their history, and they will be in Monday's draw for the last 32 along with the likes of Benfica, Ajax, Napoli and Juventus.
– Michael Laudrup.
Being through is the most important thing. In a couple of weeks we won't think about how we got there, we will just know we are in the last 32.
We have two months to wait before the knockout stage, and we are there because we deserve to be there.
Maybe you can always take things out from these games and say we should have done more, but we are through.
When we were 1-0 down and Kuban equalised against Valencia, for just a second their late goals against us went past my mind.
When St Gallen got a last-minute free kick - two goals in injury time could have sent us out, but fortunately it didn't go like that.