Tangier is a city in northern Morocco. The city is located in front of the Mediterranean Sea, and has an important port. The city has been inhabited since 5000 BC and was an important Phoenician trading center. It became an important Roman port in the 3rd century BC, when it was named Tangier in honor of its founder, King Tanguir. The city was occupied by the Vandals in 429 AD and then by the Byzantines from 533 to 693 AD. In 789 it was conquered by the Umayyad caliph Al-Walid I ibn Abd al-Malik, who called it "al-Makhzan al-Tanzir" (the treasure house).