The Emirate of Gwandu (), sometimes referred to as the Gwandu Caliphate or simply Gwandu, was one of the two political centers of the Sokoto Caliphate. Established in 1805 during the Sokoto jihad, it served as the administrative base for the caliphate's western and southern territories, while the eastern and northern domains were governed from Sokoto. This arrangement has led some scholars to describe the Caliphate as a 'dual empire'. Although the emirs of Gwandu were subordinate to the caliph, they were traditionally autonomous. The territory under Gwandu extended as far west as Dori (in present-day Burkina Faso) and south beyond Ilorin.

Throughout the 19th century, Gwandu was engaged in a series of protracted military conflicts with Kebbi and its successor state Argungu. Remembered as the Kebbi Wars, these conflict shaped much of its political and military history. Following the British conquest of the Sokoto Caliphate in 1903, Gwandu became part of the Sokoto Province under colonial indirect rule.

In independent Nigeria, the emirate lost its political sovereignty but has remained an important traditional authority. Today it is the largest emirate in Kebbi State, covering ten local government areas, including the state capital Birnin Kebbi. Its emir remains an important Muslim traditional leader in Nigeria, only behind the Sultan of Sokoto and the Shehu of Borno.

History

Sokoto jihad and establishment Following the fall of the capital of the Kebbi Kingdom, Birnin Kebbi, to the Sokoto jihadists in 1805, they moved to the Kebbi town of Gwandu as their main base. At the time, it was a small, unfortified settlement established by the 16th-century Kebbi founder Kanta Kotal and used as a royal farm (gandu) by his successors. The settlement was surrounded by rich, fertile lands, which attracted Fulani pastoralists who found the area suitable for grazing. Its location in a valley with surrounding ridges made it a defensible stronghold against attacks.

Soon after their move to Gwandu in late 1805, the jihadists were attacked by a combined alliance led by Gobir and Kebbi, including the ousted Sarkin Kebbi Muhammadu Hodi. The two armies met at Alwassa, which ended in a disastrous defeat for the jihadists, who narrowly retreated to the naturally protected Gwandu, where they mounted a desperate defense over the course of five days, ultimately defeating and routing the alliance forces. Shortly after the Alwassa–Gwandu campaign, jihadist commander Muhammad Bello built walls around the town for better defense.

After Usman dan Fodio's jihad ended in 1808 with the fall of the Gobir capital Alkalawa, he moved with most of his followers to Sifawa, leaving his brother and wazir Abdullahi to continue the fighting westward. Abdullahi expanded into Gurma territory, occupying the provinces of Dandi, Kamba, and Zaberma, thereby extending the newly established Sokoto Caliphate's reach to the Niger River in the southwest. By 1812, Amir al-Mu’'minin ('Commander of the faithful') Usman had divided authority in the Caliphate among his top commanders. The eastern emirates fell under Muhammad Bello in Sokoto, the western territories under Abdullahi in Gwandu, the north under Ali Jedo, and the south was divided between Muhammad Bukhari and Abd al-Salam. At the time of the division, the western territories included the Niger valley down to Nupe and extended as far west as Dendi. They later expanded to include Ilorin in the south and Liptako in the west. It is possible that Abdullahi expected to extend farther west to include Masina, but a separate caliphate was later declared there under Ahmadu Lobbo.

So that he would be close to Usman, Abdullahi supervised the territories from Bodinga, a small settlement near Sifawa. After Usman's death in 1817, Abdullahi rode to Sokoto expecting to organise the funeral and oversee the election of a new Amir al-Mu'minin, possibly himself. However, on his arrival he found the gates closed and was turned back. Abdullahi had long been disillusioned with the way the jihad was carried out, believing the focus had shifted from religious reform to material pursuits. Hence, he became increasingly isolated from the other Sokoto leaders, including his brother Usman and nephew Bello. This episode further strained Abdullahi's relations with Sokoto, and he refused to recognise the newly appointed Caliph Bello as Amir al-Mu'minin.

Consolidation Not long after Usman's death, a wave of revolts erupted in the Caliphate. The Kebbawa under Muhammad Hodi were never subdued and continued their resistance against Gwandu and Sokoto. The most significant, however, was that of Abd al-Salam, an important Ba-Are scholar who had been one of the leading commanders in the jihad but renounced his allegiance after he felt cheated by the division of fiefs. He was defeated by Caliph Bello in 1818 and his revolt quashed, but some of his followers gathered at the town of Kalambaina, located about three miles southeast of Gwandu. They eventually rebelled and held out for several years against a Gwandu siege until around 1821, when a combined army led by Bello succeeded in quelling the rebellion.

With the victory secured, the two leaders were said to have reconciled, with Abdullahi officially recognising Bello as Amir al-Mu'minin, and Bello in turn recognising Abdullahi as Emir of Gwandu. Henceforth, Sokoto and Gwandu became the twin capitals of the Caliphate, with Sokoto serving as the metropolitan center for the eastern territories and Gwandu for the west.

At Gwandu, Abdullahi built a community of scholars, poets, and Sufis who composed and memorised works of scholarship. In this way, under Abdullahi and his successors, the western territories emphasised scholarship rather than the politics that characterised Sokoto in the east. From 1817, Abdullahi left most of the military campaigning and administration to his son Muhammad Wani, who based himself at Birnin Kebbi. When Nupe and Ilorin came under Gwandu's authority, his nephew Muhammad Bukhari, also a noted poet, was responsible for their management. Historian Murray Last suggests this possibly made Gwandu "a kind of 'alternative' polity, deliberately distant from the post-jihad marketplace."

When Abdullahi died in 1829, he was succeeded by his eldest son Muhammad Wani. During his reign, the Kebbawa rebels remained a persistent threat. From their center at Argungu, and under the leadership of Sarkin Kebbi Karari, they waged armed resistance against Sokoto and Gwandu with support from the Zabermawa and Arewa. In 1831, a combined Sokoto–Gwandu force besieged Argungu, and its inhabitants eventually capitulated, expelling Karari and his followers. Karari was pursued and killed shortly afterward. He was said to have been found by Gwandu forces seated on his shield in the posture of prayer. His son Yakubu Nabame escaped capture but later surrendered, and was banished to Sokoto where he lived under the Caliph's supervision. Karari's death effectively suspended the Kebbawa-led resistance movement against the Caliphate.

Period of 'peace' Wani was succeeded by his younger brother Ibrahim Khalilu in 1833. He reigned for a quarter of a century, much of it involving a series of military expeditions. He first set out to end the threat posed by Borgu to the southwest, whose forces had attacked Kaoje, an important town famed for its horses. The battle was a disaster for the Gwandu forces, who were led by Muhammad Sambo, but they eventually regrouped and succeeded in driving the Borgawa out of Kaoje. Among those killed was Abdullahi's youngest son, Isiaku.

Around 1836, a combined Borgu–Oyo force invaded Ilorin, which had been in conflict with the Oyo Empire since its establishment earlier in the century. The Emir of Ilorin, Abd al-Salam, appealed to Gwandu for reinforcements against the alliance. Consequently, a combined Sokoto and Gwandu force, led by Muhammad Bukhari and Sambo respectively, was sent to defend the city. The attackers nearly routed the Caliphate's forces, but after the death of the leading Borgu commander Sero Kpera, morale collapsed. Ilorin was able to repulse the attack and successfully defended its capital.

In 1841, Emir of Bida Usman Zaki was chased out of his capital by his brother Masaba, who rebelled alongside some princes from the old Nupe dynasty. Upon receiving the news, Khalilu rode to Rabba to resolve the crisis. Following discussions, Emir Khalilu appointed Masaba as emir, removed Zaki, and returned with him to Gwandu. Two years later, Masaba himself was forced from his capital by one of his commanders, Umaru Bahaushe, who usurped the throne. It took until 1856 for Gwandu to overthrow Bahaushe. Khalilu then reinstated Usman Zaki as emir shortly afterward.

Sarkin Kebbi Karari's death had ended military confrontations between the Kebbawa and Gwandu. This period of relative peace, lasting between 1831 and 1849, improved Gwandu's economic position through the tributes it exacted from the Kebbawa. However, hostilities eventually returned after the Kebbawa accused Gwandu authorities, particularly certain princes and agents, of abuses and excesses. These officials extracted unofficial tribute, often sporadically, seizing grain and animals and, at times, enslaving children and citizens. The failure of Gwandu authorities to curb these abuses contributed to deep resentment among the Kebbawa.

Meanwhile, the Ba-Kebbi prince Yakubu Nabame, during his exile in Sokoto, became a noted commander in the Caliphate army and was eventually granted his freedom by Caliph Aliyu Babba. In 1849, however, he renounced his allegiance to the Caliphate and adopted the title of Sarkin Kebbi. Centered at Argungu, he led a powerful resistance movement consisting mainly of Kebbawa, the Arewa, and Zabermawa against the Caliphate.

Kebbi Wars Around the same time, Khalilu seems to have withdrawn from military and administrative matters. When German explorer Heinrich Barth visited Gwandu in 1853, he found Khalilu "a man without energy," who "lived in a state of the greatest seclusion, well fitted for a monk but by no means suited to the ruler of a vast empire." Khalilu died in 1858 and was succeeded by his brother Haliru. The new emir immediately set out to respond to the Argungu revolt. His first campaign was successful, but was killed on his second at Tilli in 1860. He was succeeded by his brother Aliyu, who moved the capital to Ambursa some months after his appointment. This move allowed Aliyu to better protect the towns situated on the south bank of the River Kebbi, which were vulnerable to Kebbawa attack. Throughout his reign, Aliyu fought with the Kebbawa until his death in 1864.

Abdulkadiri, another of Abdullahi's sons, succeeded as emir. To end hostilities with the Kebbawa, he agreed to a peace treaty in 1868. The treaty, negotiated by Caliph Ahmadu Rufai, is remembered as Lafiyar Toga ("the peace of Toga"), after the Argungu ruler Sarkin Kebbi Abdullahi Toga. While on his way to Bida, Abdulkadiri died in 1868. He was succeeded by al-Mustafa, a son of Emir Muhammad Wani.