Cameroon had to come from behind to beat Morocco 2-1 at the Under-17 Africa Cup of Nations in Tanzania to clinch a place at the World Cup.
Their second win of the tournament means Cameroon progress to the semi-finals of the tournament with a game to spare.
In their opening match on Monday Cameroon beat Guinea 2-0.
All four semi-finalists from Tanzania also earn a place at the World Cup in Brazil later this year.
Morocco took the lead in the 22nd minute through Tawfik Bentayeb after a slip in the Cameroonian defence on wet surface.
Ismaila Seidou equalised in the 73rd minute as his shot from a narrow angle eluded the keeper who seemed to dive the wrong way
Another defensive error handed Seidou the winner in injury time as he rounded the goalkeeper after dispossessing captain Achraf Ramzi, who was trying to dribble out of the penalty area.
It will be only Cameroon’s second appearance at the Under-17 World after their debut in 2003 in Finland, when three draws was not enough to see them progress from the group phase.