Consult your travel documentation to visit Morocco

Valid passport for EU citizens  
It is enough with the I.D. for EU citizens ONLY for the "1 day trip to tangier" 

Other nationalities consult the list of countries than need a valid visa to entry in morocco    

 Visa list to Morocco

We are not a consulate or embassy, so this is only information and not a contract, it is your responsability to have a valid passport and visa if required before acrossing the border