Denmark, European champions in 1992, secured their place with goals by Michael Krohn-Dehli and Sunderland striker Nicklas Bendtner - Portuguese superstar Cristiano Ronaldo scored a consolation goal in time added on.
Portugal even miss out on the best runners-up spot that secures an automatic place at the finals and will have to fight their way through a play-off to be present at a tournament where they reached the final in 2004.
Short link: