The Invasion of Algiers in 1830 was a large-scale military operation by which the Kingdom of France, ruled by Charles X, invaded and conquered the Ottoman Regency of Algiers. Algiers had been a province of the Ottoman Empire since the Capture of Algiers in 1529 by Hayreddin Barbarossa.
A diplomatic incident in 1827, the so-called Fan Affair (Fly Whisk Incident), served as a pretext to initiate a blockade against the port of Algiers. After three years of standstill and a more severe incident in which a French ship carrying an ambassador to the dey with a proposal for negotiations was bombarded, the French determined that more forceful action was required. Charles X was also in need of diverting attention from turbulent French domestic affairs that culminated with his deposition during the later stages of the invasion in the July Revolution.
The invasion of Algiers began on 5 July 1830 with a naval bombardment by a fleet under Admiral Duperré and a landing by troops under Louis Auguste Victor de Ghaisne, comte de Bourmont. The French quickly defeated the troops of Hussein Dey, the Ottoman ruler, but native resistance was widespread. This resulted in a protracted military campaign, lasting more than 45 years, to root out popular opposition to the colonisation. The so-called "pacification" was marked by resistance of figures such as Ahmed Bey, Abd El-Kader and Lalla Fatma N'Soumer.
The invasion marked the end of several centuries of Ottoman rule in Algeria and the beginning of French Algeria. In 1848, the territories conquered around Algiers were organised into three départements, defining the territories of modern Algeria.
During the Napoleonic Wars, the Regency of Algiers had greatly benefited from trade in the Mediterranean, and of the massive imports of food by France, largely bought on credit. The Bourbon Restoration limited trading, while the Mediterranean was completely controlled by the British Royal Navy, and the rebuilding French Navy. The dey attempted to remedy the decrease of his revenues by increasing taxes, which was resisted by peasants, increasing instability in the country and leading to widespread piracy against shipping from Europe and the young United States of America. This in turn led to the First Barbary War and the Second Barbary War, which culminated in August 1816 when Lord Exmouth executed a naval bombardment of Algiers.
The wide unpopularity of the Bourbon Restoration also made France unstable. In an attempt to distract his people from domestic affairs, King Charles X decided to engage in a colonial policy.
In 1827, Hussein Dey, Algeria's Ottoman ruler, demanded that the French pay a 28-year-old debt, contracted in 1799 by purchasing supplies to feed the soldiers of the Napoleonic Campaign in Egypt. The French consul Pierre Deval refused to give answers satisfactory to the dey, and in an outburst of anger, Hussein Dey touched the consul with his fly-whisk. Charles X used this as an excuse to initiate a blockade against the port of Algiers. The blockade lasted for three years, and was primarily to the detriment of French merchants who were unable to do business with Algiers, while Barbary pirates were still able to evade the blockade. When France in 1829 sent an ambassador to the dey with a proposal for negotiations, he responded with cannon fire directed toward one of the blockading ships. The French then determined that more forceful action was required.
King Charles X decided to organise a punitive expedition on the coasts of Algiers to punish the "impudence" of the dey, as well as to root out Barbary corsairs who used Algiers as a safe haven. The naval part of the operation was given to Admiral Duperré, who advised against it, finding it too dangerous. He was nevertheless given command of the fleet. The land part was under the orders of Louis Auguste Victor de Ghaisne, comte de Bourmont.
On 16 May, a fleet comprising 103 warships and 464 transports departed Toulon, carrying a 37,612-man strong army. The ground was well-known, thanks to observations made during the First Empire, and the Presque-isle of Sidi Ferruch was chosen as a landing spot, 25 kilometres (16 mi) west of Algiers. The vanguard of the fleet arrived off Algiers on 31 May, but it took until 14 June for the entire fleet to arrive.
French troops landed at Sidi Ferruch on 14 June 1830 against minimal opposition. Within a few days, however, troops of Algerian caids started to rise against the invaders. On 18 June, Hussein Dey assembled a 10,000-man army, comprising 1,000 Janissaries, 5,000 Moors and 3,000 Arabs and Berbers from Oran, Titteri and Medea. Bourmont merely kept the counter-attacks at bay until 28 June, when siege weapons were landed, making it possible to attack Algiers itself.
Sultan-Khalessi, the main fort defending the city, was attacked on 29 June and fell on 4 July. The Bey then started negotiations, leading to his capitulation the next day. At the same time, in France, the July Revolution led to the deposition of Charles X. French troops entered the city on 5 July, and evacuated the Casbah on 7 July. The French had 415 killed.
Before the new status of Algiers could be settled, Bourmont struck at Blida and occupied Bône and Oran in early August. On 11 August, news of the July Revolution reached Algiers, and Bourmont was required to pledge allegiance to Charles' successor Louis-Philippe, which he refused to do. He was relieved of command and replaced by general Bertrand Clauzel on 2 September. Negotiations were started with the beys of Titteri, Oran and Constantine to impose a French protectorate, spreading French influence over the entire former Regency.