In qualification for the 2006 FIFA World Cup, Chamakh scored three goals. One of his goals during qualification occurred on 8 October 2010 against Tunisia. With Morocco needing a win to qualify for the World Cup, Chamakh opened the scoring in the third minute. However, the match finished 2–2, which resulted in the team failing to qualify for the competition. However, the draw did allow Morocco qualification for the 2006 Africa Cup of Nations. In the tournament, Morocco were eliminated in the group stage and departed the tournament without scoring a goal. In 2008, Chamakh was selected to participate in his third consecutive Africa Cup of Nations and was held scoreless in the competition as Morocco were again eliminated in the group stage. In 2009–2010, Chamakh appeared in only four matches and scored no goals as Morocco failed to qualify for both the 2010 Africa Cup of Nations and the 2010 FIFA World Cup.