Umayyad, Abbasid and Fatimid periods
Tripoli gained in importance as a trading centre for the whole Mediterranean after it was inhabited by the Arabs. Tripoli was the port city of Damascus; the second military port of the Arab Navy, following Alexandria; a prosperous commercial and shipbuilding center; a wealthy principality under the Kutama Ismaili Shia Banu Ammar emirs.Legally, Tripoli was part of the jurisdiction of the military province of Damascus (Jund Dimashq).
During a visit by the traveler Nasir-i-Khusrau in 1047, he estimated the size of the population in Tripoli to be around 20,000 and the whole population were Shia Muslims. And according to Nasir Khusraw, the Fatimid Sultan raised a mighty army from Tripoli to defend it against Byzantine, Frankish, Andalusian and Moroccan invasions and raids.