However, starting from the 8th to 9th century the city was abandoned because it was too exposed to attacks by Moorish pirates.
In the 8th to 9th centuries, the city's strategic location made it an easy target for Moorish pirates, leading to its abandonment.