Zerouali at the double for Morocco
The result lifts Morocco to the top of Group B two points clear of South Africa and in pole position for a place in the quarter finals.
After three consecutive goalless draws in the group Zerouali grabbed the first goal after 23 minutes when he fired home Gharib Amzine's cross from close-range.
Burkina Faso drew level after 57 minutes when Moumouni Dagano headed home from close-range after the Morocco defence failed to clear a free-kick properly.
The impressive Zerouali nearly restored The North African's lead just two minutes later, but his clever chip struck the post.
Morocco finally did get the winner ten minutes from time when Zerouali headed home a loose ball after the Burkina defence failed to clear from a corner.
World Cup finalists Senegal booked their place in the quarter finals with a narrow 1-0 win over Zambia at The Stade M.Kaita.
The Senegalese left it late to grab the winner when substitute Souleymane Camara rose highest to head home past Zambia goalkeeper Davies Phiri two minutes from time.
Senegal dominated throughout against an injury ravaged Zambia and the win leaves them clear at the top of Group D with Egypt second on three points and Zambia and Tunisia on the solitary one point.
In Group C DR Congo and Togo fought out another goalless draw to leave Cameroon as the group winners In a rather dull game neither side were able to carve out many clear-cut chances.
It was Congo who had the best chance to when Newcastle striker Lomana Lua Lua ran clear on goal seven minutes from time, but the skilful forward fired his shot wide after Togo goalkeeper Kossi Agassa had narrowed the angle.
The result leaves the race for second spot in the group evenly poised with Togo on two points and Congo and The Ivory Coast on one point with one game to play.