Image: Cristiano Ronaldo scored twice late on to win it for Portugal The Republic of Ireland matched up to their opponents well in the first half and deservedly went ahead on the stroke of half-time as Egan glanced a header home.
The Irish, led by captain Séamus Coleman and promising young attackers Troy Parrott and Aaron Connolly, will have their work cut out for them.
We've left ourselves with a mountain to climb in the group but we can only look to the next game.
It looked as if it was going to be a frustrating night for Ronaldo and his side before the 36-year-old levelled the scores with a towering header in the 89th minute to surpass Iranian Ali Daei's record of 109 goals.
No nation has ever qualified for the finals after losing their first two group games.
We were two minutes away, but these are things you sometimes have to accept.