TheAnsar–Khatmiyyarivalry,[2][3][4] also known asal-Mahdi and al-Mirghani rivalry or theTwo Sayyids rivalry,[5] was a sectarian division in Sudan that shaped the country's political landscape after the end of theMahdist State in 1899 and until theKizan era in 1989.
The rivalry between theAnsar andKhatmiyya sects in Sudan dates back to the 19th century underTurco-Egyptian rule, which saw the rise ofpolitically driven religious movements in Sudan. The Ansar, followers ofMuhammad Ahmad al-Mahdi, established theMahdist State in 1885, which was later overthrown in 1899 byAnglo-Egyptian forces. Meanwhile, the Khatmiyya sect, founded byMohammed Uthman al-Mirghani al-Khatim in 1817, maintained close ties with Egyptian rulers and received colonial support.
DuringSudan's colonial period, the British used both groups to manage the country, but tensions arose due to their differing visions for Sudan's future. The Ansar, led bySayyidAbdul Rahman al-Mahdi, advocated for "Sudan for the Sudanese" and independence, while the Khatmiyya, led by SayyidAli al-Mirghani, supported unity with Egypt under the "Unity of the Nile Valley" slogan. These divisions deepened during Sudan's independence movement, with the Ansar aligning with theUmma Party and the Khatmiyya backing theNational Unionist Party (NUP), later the Democratic Unionist Party (DUP).
Post-independence, their rivalry shaped Sudan's political landscape, contributing to political instability,coups, and factionalism. Both groups faced suppression during authoritarian regimes, especially underGaafar Nimeiry andOmar al-Bashir. Their influence has waned in modern times, with divisions within their political wings limiting their role in Sudanese politics.
Under theTurco-Egyptian rule, Sudan saw the rise of politically driven religious movements. This was highlighted by theMahdist Uprising in 1843, led byMuhammad Ahmad "al-Mahdi" against the Turco-Egyptian rule. Afterliberating Khartoum andkilling GeneralCharles Gordon, theMahdist state was established in 1885. Despite its defeat by British forces in 1899, the movement's influence persisted with its followers known as "Ansar."[6] Ansar were based inAba Island, and were popular inDarfur (western part of Sudan).
In 1899, after the fall of the Mahdist State, the British government placed restrictions on the movements and activity of the Mahdi's son,SayyidAbdul Rahman al-Mahdi. However, he soon emerged as the leader of the Ansar. Throughout most of the colonial era of Anglo-Egyptian Sudan, the British government considered him important as a moderate leader of the Mahdists.[7]
In the early 1920s, 5,000 to 15,000 pilgrims came to Aba Island each year to celebrateRamadan. Many of them identified Abd al-Rahman with the prophetIsa, the Islamic interpretation ofJesus and assumed that he would drive the whiteChristian colonists out of Sudan. The British government found that Abd al-Rahman was in correspondence with agents and leaders inNigeria andCameroon, predicting the eventual victory of the Mahdists over theChristians. They blamed him for the unrest in these colonies. After pilgrims fromWest Africa held mass demonstrations on Aba Island in 1924, the Sayyid was told to put a stop to the pilgrimages.[8]
Conversely, during the Turco-Egyptian rule in Sudan, the "Khatmiyya," established byMuhammad Othman al-Mirghani al-Khitmi in 1817, received support and annual endowment from the Turco-Egyptian and British-Egyptian governments.[6] Khatmiyya were based inKassala, and were popular in the eastern part of Sudan with close ties to Egypt.[5]
Both the Khatmiyya and Ansar received honorary titles and support from the British administration; however, the Ansar leaders resented the Khatmiyya being part of the political landscape in Sudan. Khatmiyya warned that this resentment might lead to civil war.[5]
Following the creation ofGraduates' Club, which opened its doors inOmdurman on 18 May 1918 under the supervision of theGordon Memorial College, politically inclined members sought to expand its role into a platform for nationalist discourse and resistance against theAnglo-Egyptian colonial rule. Discussions at the club often centred on Sudan's political future, fostering debates that eventually led to the formation of two ideological factions with distinct visions for Sudan's path toindependence.[9]
The first faction promoted the idea of "Sudan for the Sudanese," inspired by journalistHussein Sharif. Sharif, through his writings in the newspaperHadarat Al-Sudan, advocated limited cooperation with the British to modernise Sudan but opposed unity with Egypt, fearing it would undermine Sudanese autonomy. This group, closely allied with SayyidAbdul Rahman al-Mahdi of theAnsar sect, dominated the club's leadership from 1920 to 1933.[9][10] For this faction, the Mahdi was portrayed as the first Sudanese nationalist and Abd al-Rahman was to many an attractive leader of the independence movement.[11]
The second faction promoted the idea of "Unity of theNile Valley" which was supported by unity with Egypt under theEgyptian crown, emphasising cultural and geographical ties between the two nations. Led by Ahmed al-Feel, they rejected alliances with religious sects, despite many members being from families traditionally loyal to theKhatmiyyah sect,[9][10] and its leader SayyidAli al-Mirghani.[12][13]
TheGraduates' General Congress (GGC) was established on 12 February 1938, with 1,180 graduates approving its constitution and electing a 15-member executive committee.[14] Aimed at advocating for Sudanese welfare and independence, the GGC used rallies, media, and alliances to mobilise public support. In 1942, it submitted demands for self-determination and the repeal of restrictive policies, but these were rejected by the colonial government, which denied the Congress political legitimacy. This rejection caused internal divisions between moderates, who sought cooperation, and assertive figures likeIsmail al-Azhari, who pushed for politicisation. Al-Azhari's leadership shifted the GGC's focus to broader nationalist goals.[15]
Al-Azhari's influence culminated in the formation of theAshiqqa (Brothers) party in 1943,[15] advocating for Sudan's autonomy within a united structure with Egypt, which later became the "National Unionist Party (NUP)" in 1952.[6] Al-Azhari's main support came from theKhatmiyyaSufi order.[16][17] Despite Khatmiyya still receiving an annual British endowment, the British, concerned about Khatmiyyah's growing political influence, have sought to counteract this by bolstering the political position of Abd al-Rahman al-Mahdi.[5][6]
In August 1944, Sayyid Abdul Rahman al-Mahdi met with senior GGC members and tribal leaders to discuss the formation of a pro-independence political party that was not associated with Mahdism. In February 1945, theNational Umma Party had been organised, and the party's first secretary,Abdullah Khalil, applied for a government license. The party's constitution did not mention Sayyid Abdul Rahman al-Mahdi or the Ansar. The only visible link to Abd al-Rahman was the party's reliance on him for funding.[18]
This division among nationalist factions, compounded by historical and ideological tensions, hindered a unified front. Efforts in 1946 to negotiate a common stance on Sudan's future further exposed these rifts, solidifying separate paths for unity with Egypt and full independence. This fragmentation shaped the trajectory of Sudanese political developments for years to come.[19][20][15]
The pro-Egyptian NUP boycotted the1948 Legislative Assembly elections. As a result, pro-independence groups dominated the Legislative Assembly. On 19 October 1952, an agreement was reached between Britain and the Umma-dominated legislature and their allies in a coalition known as the Sudanese Independence Front that was supported by the British since 1947 to act as a bulwark againstEgyptian nationalism. This agreement gave the green light for Sudan to achieveself-government by the end of 1952, followed by the exercise of the right to self-determination within the subsequent three years.[21] The legislators then enacted a constitution that provided for a prime minister and council of ministers responsible to a bicameral parliament. The agreement came to be known as the "Gentlemen's Agreement".[22] Later, ColonelMuhammad Naguib, who seized power after the1952 Egyptian revolution, accepted the right of Sudanese self-determination.
Ismail al-Azhari's pro-Egyptian NUP won the1953 parliamentary elections and he became theChief Minister in 1954, he recognised growing public opposition to union with Egypt. In response, al-Azhari shifted the party's stance to support Sudanese independence, advocating for the withdrawal of foreign troops and calling on the Egyptians and the British to sponsor areferendum.[23]
On 19 December 1955, shortly after theFirst Sudanese Civil War had broken out, al-Azhari declared theIndependence of Sudan. Internal divisions between the al-Azhari faction and the Khatmiyya order, primarily around al-Azhari's secular policies, led to a split in June 1956, with the Khatmiyya order founding the newPeople's Democratic Party (PDP), under Ali al-Mirghani's leadership. The Umma and the PDP combined in parliament to bring down the Azhari government,[6] and to preserve their political influence.[24]
Al-Azhari's NUP lost its majority in the1958 parliamentary election, and with support from the two parties and backing from the Ansar and the Khatmiyyah,Abdallah Khalil put together a coalition government.[25] However, from its inception in 1956, the Umma-PDP coalition could not reach an agreement on a permanent constitution, stabilising the south, encouraging economic development, and improving relations with Egypt.[23] Khalil grew disillusioned with the democratic process due to factionalism and bribery in parliament, coupled with the government's inability to resolve Sudan's many social, political, and economic problems. On 17 November 1958 - the day parliament was to convene - then simultaneously Prime Minister andMinister of Defence Abdallah Khalil (a retired army officer) orchestratedeffectively a self-coup against the coalition civilian government, and handing power to GeneralIbrahim Abboud.[26]
Sayyid Abd al-Rahman died on 24 March 1959,[27] and his son,Siddiq al-Mahdi, becameimam of the Ansar for the next two years. After Siddiq al-Mahdi died on 2 October 1961,[28] he was succeeded as imam by his brother, Imamal-Hadi al-Mahdi,[29] while Al-Siddiq al-Mahdi's son,Sadiq al-Mahdi, was elected president of the Umma Party in November 1964.[30] On the other hand, Sayyid Ali al-Mirghani died in 1968, leaving his eldest son,Mohamed Osman al-Mirghani to lead the Khatmiyya and PDP. This was dubbed the "divine leadership" by historians.[31]
FollowingOctober 1964 Revolution, aparliamentary election was held in 1965, which was boycotted by the PDP and won by the Umma party, but there was a low turnout.[32] The Umma and al-Azhari's NUP formed a coalition government headed byMuhammad Ahmad Mahjub (Umma). In contrast, al-Azhari becameChairman of the Sovereignty Council.[33][34] However, this coalition collapsed in October 1965 after the two parties disagreed on control of theMinistry of Foreign Affairs. In July 1966, Prime Minister Mahgoub resigned after a parliamentaryvote of censure and was replaced by Sadiq al-Mahdi.[35] Mahgoub resignation was support by Imam al-Hadi al-Mahdi, which lead to the split of the Umma party to Umma–Sadiq and Umma–Imam.[32] Sadiq's coalition government failed in May 1967 and Mahgoub returned in leading a coalition government.[36]
Al-Azhari and PDP leader Mohamed Osman al-Mirghani reunited in December 1967 in the presence of KingFaisal of Saudi Arabia, under theDemocratic Unionist Party (DUP). However, divisions within the Umma Party and opposition from Sadiq al-Mahdi's faction led to a political crisis. After Mahjub dissolved parliament, rival governments emerged, one inside the parliament and the other outside. The Supreme Court upheld Mahjub's dissolution, and newparliamentary elections were set for April 1968.[23]
The DUP party won the 1968 election and subsequently formed a coalition government with the Umma–Imama faction. In 1968, Sadiq al-Mahdi's Umma faction formed the parliamentary opposition but faced government crackdowns for resisting constitutional efforts. Later that year, the two Umma factions united to support Imam al-Hadi al-Mahdi for the presidency. At the same time, the DUP backed Al-Azhari as their candidate.[23] However, the government was toppled in the25 May 1969 coup d'état.

The coup against them was led by ColonelGaafar Nimeiry, and Imam al-Hadi al-Mahdi withdrew to his base in Aba Island.[37] In March 1970, Nimeiry tried to visit the island to talk with the imam, but was prevented by hostile crowds. Fighting later broke out between government forces, opposed by up to 30,000 Ansar. Army units backed up by air support assaulted the island, and about 3,000 people were killed.[38]
Sadiq al-Mahdi was arrested in 1970, and for many years alternated between spells in prison in Sudan and periods of exile. Following thecoup attempt in June 1976 that was orchestrated by Sadiq al-Mahdi,[39] Gaafar Nimeiry sought "national reconciliation" and integrated Sadiq al-Mahdi into theSudanese Socialist Union's political bureau, which ruled underone party system.[40]
Between 1977 and 1985, Nimeiry's implemented an "Islamic approach" in Sudan, which aimed to end sectarian divisions, especially the al-Mirghani and al-Mahdi rivalry, and consolidate Islamic governance.[41] Nimeiry declared himself the "imam of the Sudaneseumma", and theHassan al-Turabi (leader of theNational Islamic Front) assisted with drafting the laws that came to be known as theSeptember Laws. Sadiq al-Mahdi opposed the laws.[41]
During the same period, Khatmiyya remained largely inactive, with their leaders in-self exile in Egypt, allowing its members to freely decide on the degree of participation in central and state governments.[42][43][44]
Ahmed al-Mirghani (DUP) andAl-Sadiq al-Mahdi (Umma) shared power after the1985 coup d'étatFollowing the1985 coup d'état, Sadiq al-Mahdi was again elected president of the Umma party, and Khatmiyya and Ansar returned to political life in Sudan. The Umma and DUP returned to the political landscape in the1986 election, where the Umma won 100 seats and the DUP 63 seats, but al-Turabi'sNational Islamic Front made substantial gains with 51 seats. Sadiq al-Mahdi became the Prime Minister of Sudan and formed a coalition government with the DUP, withAhmed al-Mirghani (Mohamed Osman al-Mirghani's youngest brother) becoming the president.[30]
Sadiq al-Mahdi, who initially opposed the Islamic laws he later supported, envisioned a fully Arabised and Islamised southern Sudan. The coalition government was overthrown in the1989 coup d'état which was led by ColonelOmar al-Bashir and orchestrated by al-Turabi.[41]
Omar al-Bashir and the al-Turabi regime solidified their power using authoritarian tools, establishing a political security apparatus called "Internal Security," led by ColonelBakri Hassan Saleh. This body was known for its notorious detention facilities, "ghost houses," where dissidents were detained and tortured. Public freedoms were eroded, and political parties were abolished.[6]
Al-Bashir adopted more radical instance to Islamism by introducing a stricterpenal code than the September laws and establishing the "People's Police," akin to Saudi Arabia'sCommittee for the Promotion of Virtue and the Prevention of Vice. In this period,Osama bin Laden moved toKhartoum and welcomed by al-Turabi. Training camps for armed Islamic groups were established in Sudan, and al-Turabi attempted mediation betweenHamas and thePalestine Liberation Organisation.[6]
Meanwhile, the Khatmiyya and the DUP were banned after the coup,[45] with al-Mirghani was placed under house arrest in November 1989 and was released by February 1990.[46] After that, the Khatmiyya remained largely remained largely inactive, with their leaders in-self exile in Egypt until the 2018Sudanese revolution and2019 coup d'état. During that period the DUP participated in the2010[47] and2015 general election but received considerably low votes.[48] FollowingSudanese transition to democracy from 2019, the DUP party leader Mohamed Osman al-Mirghani returned to lead the party from Sudan in 2022, but shortly returned to Egypt.[49]
Conversely, after further imprisonment and exile, Sadiq al-Mahdi returned to Sudan in 2000 and 2002 was elected Imam of the Ansar. In 2003, Sadiq was re-elected President of Umma, a position he kept until he died in 2020.[30] The Umma parties split into different competing factions that participated in the 2010[47][50] and the 2015 general election, receiving limited support.[51]
| Parliamentary election | Khatmiyya | Seats | Ansar | Comment | |
|---|---|---|---|---|---|
| 1948 | NUP | Boycotted | 26 / 44 | Umma | Umma-led parliament |
| 1953 | NUP | 51 / 97 | 22 / 97 | Umma | NUP government |
| 1958 | NUP | 45 / 173 | 63 / 173 | Umma | PDP-Umma coalition government |
| PDP | 27 / 173 | ||||
| 1965 | PDP | 59 / 207 | 90 / 207 | Umma | |
| 1968 | DUP | 101 / 207 | 36 / 207 | Umma–Sadiq | DUP-Umma coalition government |
30 / 207 | Umma–Imam | ||||
6 / 207 | Umma | ||||
| 1982 | DUP | Banned | Banned | Umma | |
| 1986 | DUP | 63 / 301 | 100 / 301 | Umma | |
| 1996 | DUP | Banned | Umma | National Congress Party (NCP) government | |
| 2000 | DUP | Boycotted | Umma | ||
| 2010 | DUP | 4 / 426 | 8 / 426 | Umma and its factions | |
| 2015 | DUP–Original | 25 / 426 | 11 / 426 | Umma and its factions | |
| DUP | 15 / 426 | ||||
{{cite web}}: CS1 maint: bot: original URL status unknown (link)