During much of the twentieth century, practitioners of Sufism faced extensive criticism from both the jihadist and the anticolonial Salafi communities, who claimed that Sufi beliefs and practices were heterodox, if not heretical. Even though Sufism had been an indigenous and popular form of religious expression within the region for years, their consistent and heated denunciations of Sufism eventually led to the decline in its practice in the Maghreb. Following this decline, at the end of the twentieth century, political leaders (particularly in Morocco and Algeria) attempted to revive Sufism as a pacifist alternative to jihadi-Salafi beliefs and practices, which they believed encouraged political militancy and threatened the state. This chapter examines societal and state efforts first to discourage Sufism and encourage Salafism during most of the twentieth century, and then to reverse course and try to revive Sufism during the twenty-first century, as an attempt to counter the threat of jihadi Salafism. While there are many Sufi orders in North Africa, this chapter focuses on the larger and more influential orders, including the Shadhiliyya, the Shadhiliyya-Jazuliyya, the Shadhiliyya-Darqawiyya, the Qadiriyya, the Tijaniyya, the Sanusiyya, and the Qadiriyya-Boutchichiyya.