In 1827, an argument between Hussein Dey, the ruler of the Ottoman Regency of Algiers, and the French consul escalated into a naval blockade following whichFrance invaded and quickly seized Algiers in 1830, and rapidly took control of other coastal communities. ... He surrendered to French forces in 1847.