Entry requirements are personal to your nationality, passport and travel circumstances. They can also change. That is why this journal does not reproduce a list of visa or passport rules as though it were permanent.
Before you book travel, use Morocco’s official tourism and entry-authorization resources, then confirm the position with the official advice issued for your own nationality where relevant.