In 1830, France took control of Algeria from the Ottoman Empire. For over a hundred years, Algeria was a French colony. The French rulers kept an apartheid-like system in Algeria. For example, Arab and Berber Algerians were allowed to apply for French citizenship (which would give them the right to vote and other rights) only if they abandoned their Muslim religion and culture.