In the 16th century, Algeria became an Ottoman regency, a period during which it experienced a degree of prosperity. However, in the 19th century, France began to colonize the country, leading to an occupation that lasted 132 years. The colonization had profound consequences for Algerian society, sparking struggles for independence.