Cristiano Ronaldo edged Zlatan Ibrahimovic in the battle of World Cup superstars, scoring a late diving header to give Portugal a 1-0 win over Sweden in the first leg of their play-off.
The Real Madrid superstar headed past Sweden goalkeeper Andreas Isaksson in the 82nd minute from six yards out after a fine left wing cross from Miguel Veloso.
Ronaldo, who now has 29 goals for club and country this season, almost made it 2-0 moments later when another header thundered back off the crossbar at the Stadium of Light.
But the Portuguese had to settle for a one-goal edge ahead of the second leg in Stockholm next Tuesday where star striker Ibrahimovic will be key to helping Sweden to the finals in Brazil next summer after a low-key performance on Friday.
"It was an important goal and it gave us victory,'' said Ronaldo.
"We could have scored one or two more goals but this advantage gives us confidence for the second leg.
"Nothing is settled yet. It's 50/50. I cannot promise that we will qualify but I will do all I can to achieve it.''
Sweden coach Erik Hamren pledged a more attacking approach from his team next Tuesday.
"We have work to do but we will do all we can to win,'' he said.
The first-half was predictably nervy with opportunities at a premium.
Portugal's best chance came after just six minutes when Raul Meireles picked out Joao Moutinho who was clear one-on-one with Sweden goalkeeper Andreas Isaksson.
But Isaksson forced Mountinho out wide and the Portuguese player could only find the side netting.
A minute later, it was the visitors' turn to threaten.
Mikael Lustig sprinted down the right flank before unleashing a fine cross for Johan Elmander but the Norwich City striker could only prod the ball just past the right post of Rui Patricio in goal.
Ibrahimovic was subdued with his only contribution being a decoy at a free-kick from which Kim Kallstrom missed the target.
Portugal looked the more dangerous early in the second half with Helder Postiga and Pepe both unable to force the ball past Isaksson in a frantic scramble.
The ball broke out to Ronaldo whose drive flew over the top.
But the Real Madrid star was to have the final word on the night.