Swansea City confirmed their place in the Europa League group stages despite defeat by Petrolul Ploiesti in Romania.
The Swans, leading 5-1 from the first leg, fell behind in the second half when Njongo Priso found space to fire past keeper Gerhard Tremmel.
Roland Lamah equalised a minute later from inside the box but Hamza Younes's header restored Ploiesti's lead.
Leon Britton was sent-off late on following a second yellow card and will now miss the first group stage match.
The Swans will discover their opponents when the draw is made in Monaco on Friday lunchtime.
Europa League group stage dates
- Matchday 1: 19 September
- Matchday 2: 3 October
- Matchday 3: 24 October
- Matchday 4: 7 November
- Matchday 5: 28 November
- Matchday 6 : 12 December
Michael Laudrup's side had taken a big step towards securing their place in the group stages a week earlier with a convincing victory at the Liberty Stadium.
The side which lined up against the Romanian Cup holders showed six changes from the first leg with striker Rory Donnelly handed his first start and Britton captain in the absence of Ashley Williams.
Despite Swansea's four-goal aggregate lead, manager Laudrup had spoken before the game of the need to adopt the right attitude.
Roared on by a noisy support the home side made a positive start and looked determined to make it an uncomfortable evening for the visitors.
Swansea players were on the end of some fierce tackles and Priso was booked for a foul on Britton.
But the Swans slowly settled into the game and Michu played in Donnelly but the 21-year-old fired wide.
Clear-cut chances were at a premium, although Younes tried his luck with an acrobatic effort from the edge of the box following Ploiesti's first corner of the game.
Donnelly made plenty of running leading the line for Swansea but let a good chance pass him by after hesitating and allowing Mircea Bornescu to gather the ball at his feet.
There was a let-off for the Swans a minute before the interval when Tremmel could only palm away Younes's close-range effort and Britton was forced to head off the goal line.
Tremmel was called into action in the opening minute of the second half, tipping Filipe Teixeira's rasping effort round the post.
Ploiesti were enjoying a promising spell, although Brazilian Guilherme could only direct his free-kick straight at Tremmel and Geraldo Alves fired a weak effort wide.
That sparked a Swansea response and Michu's excellent pass found the advancing Donnelly, whose cross into the six-yard box deflected off Alves and hit the post.
The second half was a more open contest and Pablo Hernandez was first denied by Bornescu and then fired over the crossbar from the edge of the area.
Donnelly did manage to find the back of the net but was adjudged to have handled the ball with his second attempt after an initial shot was saved by Bornescu.
Ploiesti broke the deadlock with 17 minutes remaining when Priso was given far too much space to fire past Tremmel to give his side the lead on the night.
But Swansea hit back immediately when Alejandro Pozuelo found Lamah unmarked in the box and the substitute guided the ball past the keeper.
Younes restored Ploiesti's lead on the night with a glancing header from Guilherme's cross from the left before the Swans were reduced to 10 men with five minutes left.
Britton, who had been booked in the first half, was shown a second yellow card for kicking the ball away.
Live Text Commentary
Full Time The referee ends the match.90:00 +3:23
Ovidiu Hoban has an effort at goal and missed to the left of the target. Corner from the left by-line taken by Damien Boudjemaa.90:00 +2:19
Shot by Ovidiu Hoban went harmlessly over the bar.90:00 +1:53
Corner from the right by-line taken by Damien Boudjemaa.89:39
Sitya Guilherme concedes a free kick for a foul on Jose Alberto Canas. Angel Rangel restarts play with the free kick.86:56 Dismissal
Chico Chico gives away a free kick for an unfair challenge on Issa Abel Camara. Chico receives a caution for unsporting behaviour. Leon Britton shown a red card. Free kick taken by Filipe Teixeira.84:05
Booking for Alejandro Pozuelo for unsporting behaviour.84:05 Booking
Assist by Sitya Guilherme.82:55 Goal scored
Goal! - Hamza Younes - P Ploiesti 2 - 1 Swansea Hamza Younes scores. Petrolul Ploiesti 2 (3)-(6) 1 Swansea.81:53
The offside flag is raised against Hamza Younes. Gerhard Tremmel takes the free kick.81:29
Jordi Amat gives away a free kick for an unfair challenge on Sitya Guilherme. Free kick taken by Sitya Guilherme.79:42
The assistant referee signals for offside against Njongo Priso. Free kick taken by Chico Chico Chico Chico.79:15
Corner from the left by-line taken by Leon Britton. Mircea Bornescu safely holds on.78:38
Unfair challenge on Jose Alberto Canas by Filipe Teixeira results in a free kick. Angel Rangel takes the free kick.76:42
Corner taken by Filipe Teixeira from the left by-line. Clearance made by Jordi Amat.75:36 Substitution
Substitution Jose Alberto Canas is brought on as a substitute for Miguel Michu.74:38
Damien Boudjemaa takes a shot.
Assist on the goal came from Alejandro Pozuelo.73:31 Goal scored
Goal! - Roland Lamah - P Ploiesti 1 - 1 Swansea Roland Lamah slots the ball left footed into the goal. Petrolul Ploiesti 1 (2)-(6) 1 Swansea.72:17
Assist on the goal came from Sitya Guilherme.72:17 Goal scored
Goal! - Njongo Priso - P Ploiesti 1 - 0 Swansea Njongo Priso slots the ball right footed into the goal. Petrolul Ploiesti 1 (2)-(5) 0 Swansea.71:41
Ovidiu Hoban takes a shot and missed to the left of the target.69:46 Booking
Unfair challenge on Filipe Teixeira by Leon Britton results in a free kick. Leon Britton shown a yellow card. Ovidiu Hoban shoots direct from the free kick against the wall.69:21
Rory Donnelly is flagged offside by the assistant referee. Mircea Bornescu takes the free kick.66:42 Substitution
Substitution Roland Lamah replaces Pablo Hernandez.65:51
Pablo Hernandez takes a shot.65:02 Substitution
Substitution Sony Mustivar goes off and Pires Romario comes on.63:46
Pablo Hernandez takes a shot. Mircea Bornescu safely holds on.62:02
Miguel Michu challenges Sony Mustivar unfairly and gives away a free kick. Sony Mustivar restarts play with the free kick.61:15
Free kick awarded for a foul by Angel Rangel on Sitya Guilherme. Free kick crossed by Filipe Teixeira. Gerhard Tremmel catches the ball.59:43 Substitution
Substitution (Swansea) makes a substitution, with Sung-Yeung Ki coming on for Jonathan de Guzman.56:30
Unfair challenge on Sony Mustivar by Jonathan de Guzman results in a free kick. Filipe Teixeira restarts play with the free kick.55:48
Damien Boudjemaa concedes a free kick for a foul on Chico. Chico Chico Chico Chico restarts play with the free kick.53:23
Gerhard Tremmel receives a caution for time wasting.53:23 Booking
Rory Donnelly takes a shot.49:04
Jordi Amat challenges Sitya Guilherme unfairly and gives away a free kick. Shot comes in from Sitya Guilherme from the free kick. Gerhard Tremmel catches the ball.48:18
Alejandro Pozuelo challenges Ovidiu Hoban unfairly and gives away a free kick. Free kick taken by Njongo Priso.45:34
Filipe Teixeira takes a shot. Gerhard Tremmel dives and deflects the ball away.Corner from the right by-line taken by Damien Boudjemaa.45:01
The game restarts for the second half.45:01 Substitution
Substitution Filipe Teixeira replaces Pablo De Lucas.45:01 Substitution
Substitution Issa Abel Camara replaces Ferebory Dore.45:00 +1:21 Half time
Half Time The first half comes to an end.45:00 +0:27 Booking
Jordi Amat challenges Hamza Younes unfairly and gives away a free kick. Jordi Amat booked. Sitya Guilherme takes the free kick.42:40
Corner taken by Damien Boudjemaa from the right by-line. Hamza Younes takes a shot. Fine finger tip save by Gerhard Tremmel.Corner taken by Pablo De Lucas from the left by-line.40:00
Chico Chico concedes a free kick for a foul on Damien Boudjemaa. Damien Boudjemaa has an effort direct from the free kick that misses right.36:29
Alejandro Pozuelo fouled by Njongo Priso, the ref awards a free kick. Jonathan de Guzman takes the free kick.35:21
Corner from the right by-line taken by Damien Boudjemaa. Header by Ovidiu Hoban misses right.30:20
Hamza Younes takes a shot.29:26
Corner taken by Damien Boudjemaa. Clearance by Angel Rangel.27:57
Unfair challenge on Damien Boudjemaa by Chico Chico results in a free kick. Srike on goal from Ovidiu Hoban hits the wall from the free kick.23:09
Unfair challenge on Ferebory Dore by Jordi Amat results in a free kick. Srike on goal from Ferebory Dore hits the wall from the free kick.21:17
Foul by Miguel Michu on Ovidiu Hoban, free kick awarded. Ovidiu Hoban restarts play with the free kick.20:35
Geraldo Alves challenges Pablo Hernandez unfairly and gives away a free kick. Pablo Hernandez restarts play with the free kick.19:33
Free kick awarded for an unfair challenge on Ovidiu Hoban by Miguel Michu. Sony Mustivar restarts play with the free kick.18:52
Shot by Rory Donnelly went wide right of the target.18:15
Rory Donnelly is ruled offside. Free kick taken by Mircea Bornescu.16:48
Chico Chico concedes a free kick for a foul on Ferebory Dore. Sony Mustivar restarts play with the free kick.14:17
The referee shows Njongo Priso a yellow card.14:17 Booking
Sony Mustivar challenges Alejandro Pozuelo unfairly and gives away a free kick. Free kick taken by Pablo Hernandez.11:05 Booking
Sony Mustivar challenges Leon Britton unfairly and gives away a free kick. The referee cautions Sony Mustivar for unsporting behaviour. Ben Davies restarts play with the free kick.8:53
Jonathan de Guzman takes a short corner.8:19
Hamza Younes gives away a free kick for an unfair challenge on Jordi Amat. Free kick taken by Gerhard Tremmel.6:58
Free kick awarded for a foul by Angel Rangel on Damien Boudjemaa. Pablo De Lucas crosses the ball in from the free kick.6:48
Handball by Pablo De Lucas. Jordi Amat takes the free kick.5:24
The referee blows for offside against Rory Donnelly. Free kick taken by Jean Sony Alcenat.2:48
Geraldo Alves concedes a free kick for a foul on Alejandro Pozuelo. Alejandro Pozuelo restarts play with the free kick.1:34
Njongo Priso fouled by Jonathan de Guzman, the ref awards a free kick. Free kick taken by Njongo Priso.1:00
Free kick awarded for an unfair challenge on Miguel Michu by Ovidiu Hoban. Free kick taken by Ben Davies.0:00
The referee gets the match started.
Live data and text provided by our data suppliers