In 1827, the dey invited a French ambassador to pay some of the debt. The encounter resulted into a conflict in which the Algerian dey hit the French consul in the face with a fly-whisk. The French were furious and decided to blockade the Algerian city of Algiers. However, historians agree that the fly-whisk incident, as serious as it was, was only a pretext.