text: Relations with Europe The French Revolution and reactions to it negatively affected European economic activity leading to shortages which provided business opportunities for Tunisia, i.e., regarding goods in high demand but short in supply, the result might be handsome profits. The capable and well-regarded Hammouda Pasha (1782–1813) was Bey of Tunis (the fifth) during this period of prosperity; he also turned back an Algerian invasion in 1807, and quelled a janissary revolt in 1811.
  After the Congress of Vienna in 1815, Britain and France secured the Bey's agreement to cease sponsoring or permitting corsair raids, which had resumed during the Napoleonic conflict. After a brief resumption of raids, it stopped. In the 1820s economic activity in Tunisia took a steep downturn. The Tunisian government was particularly affected due to its monopoly positions regarding many exports. Credit was obtained to weather the deficits, but eventually the debt would grow to unmanageable levels. Tunisia had sought to bring up to date its commerce and trade. Yet different foreign business interests began to increasingly exercised control over domestic markets; imports of European manufactures often changed consumer pricing which could impact harshly on the livelihood of Tunisian artisans, whose goods did not fare well in the new environment. Foreign trade proved to be a Trojan Horse.
  Importance of Tunisian Navy
  Activities of maritime corsairs were important at that time because independence from the sultan led to the decline of its financial support and Tunisia therefore had to increase the number of its catches at sea in order to survive.