In the 1500s and 1700s, the Spanish Empire ruled a lot of Algeria. France colonized Algeria starting in 1830. In 1954, the National Liberation Front (Front de Libération Nationale or FLN) wanted freedom from France. They fought a war. It became independent from France in July 5, 1962.