The Karamanli or Caramanli or Qaramanli or al-Qaramanli dynasty was a series of Pashas, who ruled from 1711 to 1835 in Tripolitania (Tripoli and its surroundings in present-day Libya). At their peak, the Karamanlis' influence reached Cyrenaica and Fezzan covering most of Libya. The founder of the dynasty was Pasha Ahmed Karamanli, a desecendent of the Karamanids . The most well-known Karamanli was Yusuf ibn Ali Karamanli Pasha who reigned from 1795 to 1832, who fought a war with the United States in (1801–1805) and again jointly with Tunis and Algiers in 1815. Ali II Pasha marked the end of the dynasty.