In 1819, the Bey agreed to quit with finality corsair raids. Also the Bey agreed with France to terminate his revenue policy whereby government agents dominated foreign trade by monopolizing the export of Tunisian goods; this change in policy opened the country to international commercial firms. In 1830 the Bey accepted to enforce in Tunisia treaties, in which European merchants enjoyed extraterritorial privileges, including the right to have their resident consuls act as the judge in legal cases involving their national's civil obligations.
In 1819, the Bey agreed to permanently cease corsair raids. At the same time, he negotiated with France to end his policy of government agents dominating foreign trade by monopolizing Tunisian exports; this change opened Tunisia to international commercial firms. In 1830, the Bey accepted to enforce treaties in Tunisia that granted European merchants extraterritorial rights and allowed resident consuls to act as judges in civil cases involving their nationals.