The Karamanli of Libya were an interesting bunch to say the least. They arrived in Libya in 1711, their founder was a Janissary, and seized the governorship of Libya (then the Ottoman province of Tripolitania) and ruled it as a functionally independent state until the 1830s. Their last ruler, Yusuf Pasha, of “the shores of Tripoli” fame, took major steps to strengthen and industrialise his country. However due to his increasingly tyrannical conduct and his over-reliance on the slave trade for tax revenue his regime fell apart in the 1830s. My challenge to you is to have a Karamanli ruled Tripolitania survive the Scramble for Africa.