section_path: Qualification/Qualified teams
section_name: Qualified teams
paragraph_text: Qualified teams
  
  The following 24 teams qualified for this edition, all of them have previously participated in the tournament. Morocco, the host country, played in the qualifiers in Group B despite qualifying automatically. Ghana, four-time African champions, failed to qualify after finishing bottom of the Group F, missing out on the Africa Cup of Nations for the first time since 2004. Tunisia qualified for the 22nd time and extended their record for consecutive participations, reaching the tournament for the 17th time in a row, having not been absent since 1994. Comoros, Gabon, Sudan and Zimbabwe made their return to the continental tournament after missing out on 2023. Benin and Uganda made their return after an almost five-year absence from the event. Botswana qualified for the second time after their first participation in 2012. Cape Verde, Gambia, Guinea, Guinea-Bissau, Mauritania and Namibia also failed to qualify after appearing in 2023.