A superb solo winner from substitute Jacob Mingorance ensured a perfect European debut for Llanelli against Swedish side Gefle in Stockholm.
The Spanish midfielder scored in the 86th minute at the Rasunda Stadium with a mazy run and cool left-foot finish.
Llanelli had only equalised four minutes earlier in the first leg of this Uefa Cup first qualifying round.
Rhys Griffiths' 82nd-minute header brought Llanelli level, after Estonian Kristen Wiikmae had put Gefle ahead.
Gefle took a deserved lead after 20 minutes when Wiikmae scored with a half-volley from inside the penalty area, following a pass from left-back Patrik Karlsson.
Mathias Woxlin and Benny Mattsson also had good chances to score before the break, but found Llanelli goalkeeper Duncan Roberts in good from.
The visitors did not put Gefle under much pressure in the first half and their most promising move was from a corner, but Mattias Hugusson saved well.
Llanelli substitute Nick Harrhy had the first chance of the second half but his shot from close range went the wrong side of the post.
The Welsh side were more attack-minded in the second half and their pressure told in the 82nd-minute when they equalised.
Hugusson came off his line to intercept Harrhy's cross from the left, only for Griffiths to beat the goalkeeper to the ball and put a looping header into the net and Llanelli back in the tie.
With just four minutes to play Llanelli made it 2-1 following a counter-attack as substitute Mingorance scored with a left-footed shot.
Wiikmae nearly grabbed a late equaliser for the Swedes but his last-minute shot hit the post.
That allowed Llanelli to take a vital lead, and two away goals, back to west Wales for the return leg of the tie on 27 July.
Gefle (from): Mattias Hugosson, Daniel Bernhardsson, Thomas Hedlund, Magnus Wikstrom, Patrik Karlsson, Yannick Bapupa, Johan Claesson, Mathias Woxlin, Rene Makondele, Benny Mattsson, Kristen Viikmae, Peter Bergqvist, Jonatan Hellstrom, Anders Wikstrom, Johannes Ericsson, Petter Osterberg, Daniel Westlin, Anton Jallow.
Llanelli: tbc
Referee: Sergey Tsaregradskiyi (KZK).