There are two main camsites in Tangiers - Camping Miramonte also known as Camping Marshan, and Camping Tingis.
They are both located outside the town centre. You can also go camping close to the Caves of Hercules; Camping Ashakar, 16km from town and 5km south of the Cap Spartel lighthouse, has much better facilities. There are also some very well maintained campsites north of Asilah, about 35 kms from Tangier.