The strict conditions were imposed at the beginning of the country’s decade-long civil war, which pitted Islamic militants against a military-dominated government that refused to abide by the results of a 1991 election that suggested Islamists would be ascendant. Tens of thousands died in the conflict.
Algeria paid a heavy price to prevent an Islamist takeover. There is no guarantee that it won’t happen again if free elections are held in the future.