Ryan Nyambe's African Cup of Nations debut ended in disappointment as a late own goal saw Namibia start their campaign with a defeat in Egypt.
Itamunua Keimuine with one minute remaining was the difference on the night, with the defender handing opponents Morocco the points late on by planting a header into his own net.
Nyambe produced an assured performance playing at centre back for his country and will have benefited from lining up against the likes of Hakim Ziyech, Mehdi Benatia and Achraf Hakimi.
The Academy graduate played the full 90 minutes and will be hoping for better fortunes when Namibia take on South Africa on Friday, kick-off 9pm GMT.
Elsewhere, Jayson Leutwiler's Canada earned an emphatic victory against Cuba in the Gold Cup.
An unused substitute in the clash, Leutwiler watched on as his country smashed their opponents for seven, with former Rover Junior Hoilett netting one of the goals.
Another ex-Rover in Doneil Henry also played in the game, before being substituted in the second half.
Canada are now through to the quarter-finals stage of the competition, with an opponent to be decided this week.