In 1827, the last Ottoman ruler of Algeria, Hussein Dey, struck the French consul, Pierre Deval in the face with a fly-whisk during a dispute over unpaid French debts to Algeria. That insult became a pretext for the French invasion of Algeria in 1830.