Denmark 2-3 Portugal
A late goal from Silvestre Varela secured the win for Portugal after Nicklas Bendtner's brace appeared to have earned Denmark a draw.
After losing their first game against Germany, Portugal desperately needed to beat Denmark in their second Group B fixture.
Portugal started strongly, playing a much more open game than they did against the Germans, and managed to open the scoring on 25 minutes when Pepe headed home from a Joao Moutinho corner.
Helder Postiga doubled their advantage 10 minutes later with a fine finish from a Nani cross, the former Spurs striker used the pace of the delivery to guide the ball with power beyond Denmark keeper Stephan Andersen.
Portugal appeared to be cruising but against the run of play Denmark got back into the game four minutes before the break through Bendter.
Lars Jacobsen chipped the ball into the penalty area and Michael Krohn-Dehli managed to beat the offside trap to head the ball back across goal, where Bendtner was waiting to head unchallenged into an empty net.
In the second half, Portugal again enjoyed the majority of possession and Real Madrid star Cristiano Ronaldo should have restored the two-goal advantage soon after the restart but his effort was saved by Andersen after Nani's defence-splitting pass had left the forward in a one-on-one situation.
Denmark had their chances, however, and William Kvist nearly scored his first international goal as his powerful shot from range had Portugal goalkeeper Rui Patricio well beaten but his effort went just wide of the upright.
Ronaldo wasted a glorious opportunity to put the game to bed with less than 15 minutes remaining. Nani again managed to split the Danish defence to leave the former Manchester United man one-on-one with Andersen, Ronaldo had time to try and round the keeper but instead he tried to shoot and his effort was a poor one, with his shot well wide of the Denmark goal.
That miss could have come back to haunt Ronaldo as moments later Jacobsen's cross found Bendtner who grabbed an equaliser with a powerful headed goal, Patricio managed to get a hand to it but he couldn't stop the ball flying into the back of the net.
However, Portugal managed to secure all three points thanks to Varela, who had only been on the pitch for a matter of minutes.
Fabio Coentrao's cross found the Porto winger, Varela missed the ball completely with his first left-footed attempt but the ball fell kindly and he made no mistake with his second attempt as his right-footed effort beat Andersen to wrap up a vital three points for Portugal.