With Neymar missing the game due to an ankle injury, the five-time champions laboured for long periods of the match as they struggled to breakdown the determined defensive set up of their Group G opponents.
Bruno Fernandes scored twice to send Portugal through to the knockout stages from Group H with a game to spare after beating Uruguay 2-0.
Cristiano Ronaldo thought he had scored a second-half header although the striker did not get a touch to Fernandes’ cross which ended up in the net.