substitute silvestre varela struck three minutes from time after two nicklas bendtner goals had brought denmark back from 2-0 down.
substitute silvestre varela scored an 87th-minute winner as portugal revived their uefa euro 2012 fortunes in an absorbing 3-2 victory.
nicklas bendtner looked to have earned denmark a stirring share of the spoils in a memorable 50th international appearance. trailing to two first-half goals in a 12-minute period from pepe and hélder postiga, bendtner pulled one back just before half-time before making it 2-2 with ten minutes remaining after cristiano ronaldo had twice fluffed his lines. portugal were eyeing the group b exit door but varela slammed it shut with an emphatic low strike after initially failing to connect fully with fábio coentrão's cross.
unburdened by the necessity for points that an opening-day victory gives you, denmark made a start true to the maxim emblazoned down the side of their bus at uefa euro 2012: vikinger uden frygt (vikings without fear). they advanced down the wings, won a rash of early corners and only the alertness of pepe, sliding in, denied christian eriksen when the midfielder intercepted a weak effort just inside the penalty area with the defence pushing up.
haste, though, can be the enemy of perfection. slowly portugal gained a foothold, with ronaldo's licence to drift inside causing consternation; by the time niki zimling limped off on 16 minutes denmark were already losing their grip. they duly fell behind midway through the first period as pepe lost his marker and rose at the near post to glance in joão moutinho's pinpoint corner.
it was only portugal's second goal in five outings but having rediscovered where the net was they had little trouble finding it again after 36 minutes. denmark's defending was again questionable as a poor clearance was quickly worked into nani's feet and the winger drilled in a cross that postiga, peeling away from simon kjær, speared beyond stephan andersen. it all looked so easy but, with four minutes of the half remaining, denmark had a lifeline.
an awkward ball towards the far post looked innocuous enough but nobody picked up michael krohn-dehli. with rui patrício committed to closing him down, the winger unselfishly headed it back across goal where bendtner, still only 24, nodded in what must be the easiest of his now 20 international goals. it was also his fifth strike in as many meetings with the selecção das quinas, including one in each of the sides' meetings in qualifying – a sixth would follow.
portugal, without a win in 2012, could have dropped their heads yet instead they set about restoring their two-goal cushion, increasingly aided by denmark's high defensive line as morten olsen's men sought an equaliser. postiga exposed it beautifully soon after half-time, but ronaldo finished second best in the one-on-one with andersen.
the real madrid cf man squandered an even more presentable chance 13 minutes from time, side-footing wide with only the goalkeeper to beat and bendtner looked to have made him pay with a far-post header – varela, though, had other ideas. it means both sides go into sunday's concluding group games with hope of advancing, though denmark may be without dennis rommedahl after he limped off on the hour feeling his hamstring.