In the early eighteenth century, the Ottoman Empire was losing its grip on its North African holdings, including Tripolitania.
An intelligent and able man, Ahmed greatly expanded his city's economy, particularly through the employment of corsairs on crucial Mediterranean shipping routes; nations that wished to protect their ships from the corsairs were forced to pay tribute to the pasha.