The Confederation of African Football (CAF) have announced that next year’s CHAN, which Nigeria have qualified for, will now be hosted by Morocco.
The biennial competition will be played from January 12 to February 4.
Kenya were originally to stage this tournament reserved for players who feature in their domestic leagues, but they were stripped of the hosting right in September as preparations were far behind schedule.
Morocco, Equatorial Guinea and Ethiopia then submitted fresh bids for the tournament.
Both Morocco and Equatorial Guinea had valid bids, but Ethiopia did not get a letter of government guarantee.
The CAF emergency committee in Lagos, Nigeria, Saturday unanimously voted for Morocco to stage the 16-team competition next year.
Morocco hosted the U23 AFCON in 2011, which was the qualifying tournament for the London Olympics in 2012.
They have staged the AFCON in 1988 as well as the U17 AFCON in 2013.
They withdrew from hosting AFCON 2015 over fear of the deadly Ebola, which ravaged West Africa around that time.