Brazil's first game under interim boss Ramon Menezes ended in defeat as Morocco claimed a 2-1 win in Tangier.
Menezes is in temporary charge after Tite's reign ended in the quarter-finals of last year's World Cup.
And his debut in the Selecao dugout proved a frustrating one against the surprise World Cup semi-finalists, as Brazil saw several chances go begging and were ultimately undone by Abdelhamid Sabiri's 79th-minute winner.