Occupation of Tripoli (Tarabulus al-Gharb) by the Spaniards — end of Hafsid rule
After the Ammarids, Hafsid rule in Tripoli lasted until 1510. In that year the city was occupied by the Spaniards under Don Pedro Navarro, Count of Oliveto; the Muslims who survived the massacre left the city. The occupation was the eastern end of Spain's chain of fortresses on the North African coast extending from Melilla to Tripoli. The people of Tripoli would send a delegation to Istanbul in 925 (1519) to ask the Ottomans for help against the Spanish invasion, and the city would be taken in 1551 by Turgut Reis and Sinan Pasha and come under Ottoman administration.