<human>:  What year did the French annex Algeria?
<bot>: The French occupied Algeria from 1830 to 1962. The French conquered Algeria during the Napoleonic Wars. The French military campaign in Algeria was a major turning point in the history of the French Empire. The French Empire was founded by Napoleon Bonaparte, and Algeria was the first colony of the French Empire. The French military campaign in Algeria was a major turning point in the history of the French Empire.