In 1830 during the Invasion of Algiers by France, many Algerian troops were of Zwawa origins. Their heavy resistance and fighting capability during the Battle of Staouéli impressed the French, whom created a unit called the Zouaves to recruit Zwawas into the French army. As these recruitment campaigns were rather unsuccessful, they rebranded the unit.