Spain snatched a place in the Nations League final four after Álvaro Morata’s late goal secured a 1-0 win over Portugal in Braga to ensure top spot in their group.
Portugal had dominated the match but Spain stayed in the contest and in the 88th minute a long ball into the box from Dani Carvajal was headed by Nico Williams across to Morata, who lashed it into the net to silence most of the sold-out stadium.
Portugal had a late chance to earn the point they needed but Cristiano Ronaldo missed from close range to extend his scoreless streak with the national team to three matches.
Spain had not won in Portugal in nearly two decades, since a friendly in 2003, and this was their first competitive away victory against their neighbours since a 2-1 World Cup qualifying triumph in 1934.