The history of Algiers from 1830 to 1962 is bound to the larger history of Algeria and its relationship to France. On July 4, 1830, under the pretext of an affront to the French consul—whom the dey had hit with a fly-whisk when the consul said the French government was not prepared to pay its large outstanding debts to two Algerian merchants—a French army under General de Bourmont attacked the city in the 1830 invasion of Algiers. The city capitulated the following day. Algiers became the capital of French Algeria.