Robbie Keane's 92nd-minute winner saved Tottenham Hotspur FC's blushes in Portugal after SC Braga had come from two goals down to level.
The English visitors wasted a number of chances before Keane and Steed Malbranque gave them a 2-0 lead in the second half only for Braga to score twice in five minutes through Paulo Jorge and Zé Carlos.
Tottenham had the first opportunity of the UEFA Cup Round of 16 first leg when Dimitar Berbatov toe-poked wide of Paulo Santos's goal, before Teemu Tainio was denied by the Braga keeper. The hosts responded with Paul Robinson being called into action to push away Bruno Gama's long-range deflected effort and Vítor Castanheira firing wide.
Berbatov missed another opening on 20 minutes while Gama spurned his second opportunity of the night as his snap-shot flew straight at Robinson. Keane was the next Tottenham player to test Santos, the No1 touching over his attempt before Berbatov continued his personal duel with Santos with two more drives.
Braga sought to up their game after the break with Zé Carlos drilling into the sidenetting, but Tottenham quickly resumed control and made the breakthrough on 57 minutes as Aaron Lennon's chip found Keane and the Irish international volleyed in. Martin Jol's side looked to put the tie to bed, and it was no surprise when they increased their advantage after 72 minutes. Lennon skipped into the Braga box, and after Santos had parried the winger's shot, Malbranque slammed the rebound into the roof of the net.
Braga were given hope when Diego went down under a challenge from Anthony Gardner in the area four minutes later. Paulo Jorge's penalty was pushed away by Robinson but the same player turned in the loose ball. Then, on 81 minutes, the Liga team grabbed an unlikely equaliser as Zé Carlos headed in Castanheira's free-kick. Yet there was still more drama as Didier Zokora's pass to Keane split the Braga defence two minutes into added time and the striker rolled a shot under Santos for the decider.