The population quickly converted to Islam .
Ghadames played an important role as base for the Trans - Saharan trade until the 19th century .
The population quickly converted to Islam and Ghadames played an important role as base for the Trans - Saharan trade until the 19th century .