The Moroccans opened the scoring in the 14th minute through Zakaria El Ouahdi, before Mamady Diambou restored parity in the 66th minute. In extra time, Amine El Ouazzani restored the lead (111th), but Issoufi Maiga equalized for Mali five minutes later (116th). In the penalty shoot-out, Abdessamad Ezzalzouli's team-mates won 4-2.
In the final, scheduled for next Saturday, Morocco will face Egypt, which defeated Guinea (1-0) earlier in the first semi-final.