Answer
Algeria was conquered by France in 1830, during the reign of Ottoman Sultan Mahmud II. The French invasion began on 5 July when a fleet carrying 37,000 soldiers landed at Sidi Ferruch, near Algiers, as a response to the Dey's attack on the French consul in 1827. Algiers fell on 5 July, and the conquest of Algeria was completed by 1847.