The Ivorians went into Tuesday night's final round of games in Group B as pool pacesetters, and sealed the top spot with a 2-1 win.
Ines Konan laid on the pass for Nsira Ouedraogo to give Cote d'Ivoire the lead just before half-time. Konan then doubled the advantage from the penalty spot in the 68th minute.
Tanzania pulled one back in the ninth minute of second-half stoppage time through Diana Msewa's penalty.
As pool winners, Cote d'Ivoire will face Group A runners-up Algeria on 8 August for a place in the semi-finals.
African football chiefs urged to expand women's Cup of Nations within four years
'It doesn't have to be pretty'
South Africa, who edged past Burkina Faso 1-0 in Casablanca, will take on the hosts Morocco.
Thembi Kgatlana struck the only goal of the game midway through the first half at the Stade Moulay Rachid.
"I've got to give credit to the players," said South Africa coach Desiree Ellis after the game. "It wasn't pretty but sometimes it doesn't have to be pretty. We stuck to our task defensively and we were organised."
The final games in Group C take place on Wednesday.
Tournament debutantes Malawi would progress with a draw against Zambia in Rabat, while defending champions Nigeria need to beat Egypt.
The four sides who reach the semi-finals also claim a berth at the 2027 Women's World Cup in Brazil, while the four losing teams will head to a play-off for two spots at an inter-confederation qualifier.



NPP demands answers on funding for Mahama's GH¢2 diesel price relief
Fire guts five shops in Prestea; GNFS saves eight others
More Ghanaians refuse to pay bribes, but more officials demand money — GSS repor...
Kpando Court jails woman three years for abducting eight-month-old baby
Oliver Barker-Vormawor raises concerns over attempted deportation of Belgian nat...
Ghana’s gold purchase programme recorded $1.7billion loss in 2025 – IERPP calls ...
Government evacuates additional 150 Ghanaians from South Africa amid xenophobic ...
NPP Vice Chairman rejects wife-snatching claims after marrying Fancy Gadam’s ex-...
NDC pioneered one-member-one-vote system before Supreme Court ruling — Asiedu Nk...
'Democracy will continue to attack you until you apologise to Ghanaians for your...