The Tripolitanian Civil War was a conflict from 1793 to 1795 which occurred in what is today the country of Libya. Ali Benghul, an Ottoman officer, deposed Hamet Karamanli, the ruler of Tripolitania, who had ruled since the end of the corrupt and ineffective rule of Ali I in 1793. Hamet and his brother Yusuf returned to Tripoli with the aid of the Bey of Tunis and took control of the throne.[2]