The Atlas Lions opened the score through Soufiane Boufal in the 29th minute, before doubling the lead through Abdelhamid Sabiri in the 79th minute. Meanwhile, Casemiro equalized for Brazil 1-1 (67th).
The national team will fly next Tuesday to Spain, to face the Peruvian team in Madrid (21:30 local time).