To enjoy your vehicles in Morocco the time of the rally, you can benefit from the “temporary import regime”. You must complete a Declaration of Temporary Admission “D16ter”.
Upon arrival in Morocco, your vehicle will be automatically associated with your passport. This enables authorities to monitor entrances and exits of vehicles (if your passport is associated with a vehicle, you will only be able to exit the country with this vehicle). A passport can be associated with only one vehicle at a time.
Be careful, if you want to enter Morocco with a truck/utility vehicle or if you want to import several vehicles on your own, it’s an ATA carnet that you will need. It is issued by the Chamber of Commerce and Industry.

In any case, if you’re not the owner the vehicle, you will need a “power of attorney” For more information, take a look at the website of the Moroccan Customs