Nani scored twice as Portugal beat Iceland 5-3 Friday, setting up a decider with Denmark next week for automatic qualification to next year's European Championship finals.

Portugal and Denmark are tied on 16 points at the top of Group H, but as Portugal won the home game between the teams, a draw for the Portuguese in Copenhagen on Tuesday will be enough to send them to the tournament as group winners.

Manchester United winger Nani scored twice in the first half-hour and Helder Postiga made it 3-0 at the break.

Hallgrimur Jonasson got Iceland's first away goal with a 48th-minute header and then made it 3-2 in the 68th. Joao Moutinho and Eliseu scored in the last 10 minutes before a Gylfi Sigurdsson penalty.