The Hausa Kingdom, also known as Hausaland, was a collection of states started by the Hausa people, situated between the Niger River and Lake Chad (modern day northern Nigeria). Hausaland lay between the Western Sudanic kingdoms of Ancient Ghana and Mali and the Eastern Sudanic kingdoms of Kanem-Bornu. Hausaland took shape as a political and cultural region during the first millennium CE as a result of the westward expansion of Hausa peoples. They arrived to Hausaland when the terrain was converting from woodlands to savannah. They started cultivating grains, which led to a denser peasant population. They had a common language, laws, and customs. The Hausa were known for fishing, hunting, agriculture, salt-mining, and blacksmithing. By the 14th century Kano had become the most powerful city-state. Kano had become the base for the trans-Saharan trade in salt, cloth, leather, and grain. The Hausa oral history is reflected in the Bayajidda legend, which describes the adventures of the Baghdadi hero Bayajidda culmulating in the killing of the snake in the well of Daura and the marriage with the local queen Magajiya Daurama. According to the legend, the hero had a child with the queen, Bawo, and another child with the queen's maid-servant, Karbagari.
According to the Girgam, the Daura Emirate was established in 2000 BC and it all began from Canaan. When the people traveled and settled in Daura a man called Bayajidda arrived from Baghdad who the main figure of the Bayajidda legend. According to a great scholar from the University of ilorin Lawal micheal, he made it clear that Bayajidda's name was not initially bayajidda, Lawal said his real name was ABUYAZID and when he got to Daura, he went to the house of Ayyana and asked her to give him water for he was a traveler, she told him the predicament of the land of daura, how the only well in daura called kusugu was inhabited by a snake called sarki, who allowed citizens of daura to fetch water only on Friday's ABUYAZID killed the snake and because of what he had done the queen married him because of his bravery furthermore, Lawal stated after his marriage to the queen the people started to call him Bayajidda which means "someone who doesn't understand Hausa before but now understand the way of the hausa people ". According to the Bayajidda legend, the Hausa states were founded by the sons of Bayajidda, a prince whose origin differs by tradition. but official canon records him as the person who married the last Kabara of Daura and heralded the end of the matriarchal monarchs that had erstwhile ruled the Hausa people. Contemporary historical scholarship views this legend as an allegory similar to many in that region of Africa that probably referenced a major event, such as a shift in ruling dynasties.
According to the Bayajidda legend, the Banza Bakwai states were founded by the seven sons of Karbagari ("Town-seizer"), the unique son of Bayajidda and the slave-maid, Bagwariya. They are called the Banza Bakwai meaning Bastard or Bogus Seven on account of their ancestress' slave status.
The Hausa Kingdoms began as seven states founded according to the Bayajidda legend by the six sons of Bawo and himself, the unique son of the hero and the queen Magajiya Daurama in addition to the hero's son, Biram or Ibrahim, of an earlier marriage. The states included only kingdoms inhabited by Hausa-speakers:
Since the beginning of Hausa history, the seven states of Hausaland divided up production and labor activities in accordance with their location and natural resources. Kano and Rano were known as the "Chiefs of Indigo." Cotton grew readily in the great plains of these states, and they became the primary producers of cloth, weaving and dying it before sending it off in caravans to the other states within Hausaland and to extensive regions beyond. Biram was the original seat of government, while Zaria supplied labor and was known as the "Chief of Slaves." Katsina and Daura were the "Chiefs of the Market," as their geographical location accorded them direct access to the caravans coming across the desert from the north. Gobir, located in the west, was the "Chief of War" and was mainly responsible for protecting the empire from the invasive Kingdoms of Ghana and Songhai.
The Hausa Kingdoms were first mentioned by Ya'qubi in the 9th century and they were by the 15th century vibrant trading centers competing with Kanem-Bornu and the Mali Empire. The primary exports were slaves, leather, gold, cloth, salt, kola nuts, animal hides, and henna. At various moments in their history, the Hausa managed to establish central control over their states, but such unity has always proven short. In the 11th century the conquests initiated by Gijimasu of Kano culminated in the birth of the first united Hausa Nation under Queen Amina, the Sultana of Zazzau but severe rivalries between the states led to periods of domination by major powers like the Songhai and Kanem. During the reign of King Yaji I (1349–85) Islam was first introduced to Kano. Many Muslim traders and clerics used to come from Mali, from the Volta region, and later from Songhay. King Yaji appointed a Qadi and Imam as part of the state administration. Muhammad Rumfa (1463–99) built mosques and madrassahs. He also commissioned Muhammad al-Maghili to write a treatise on Muslim governance. Many other scholars were brought in from Egypt, Tunis, and Morocco. This turned Kano into a center of Muslim scholarship. Islamization facilitated the expansion of trade and was the basis of an enlarged marketing network. The 'Ulama provided legal support, guarantees, safe conducts, introductions and many other services. By the end of the fifteenth century, Muhammad al-Korau, a cleric, took control of Katsina declaring himself king. 'Ulama were later brought in from North Africa and Egypt to reside in Katsina. An 'Ulama class emerged under royal patronage. The Hausa rulers fasted Ramadan, built mosques, kept up the five obligatory prayers, and gave alms (zakat) to the poor. Ibrahim Maje (1549–66) was an Islamic reformer and instituted Islamic marriage law in Katsina. Generally Hausaland remained divided between the Muslim cosmopolitan urban elite and the local animistic rural communities.
Despite relatively constant growth from the 15th century to the 18th century, the states were vulnerable to constant war internally and externally. By the Eighteenth century they were economically and politically exhausted. the vast majority of its inhabitants were Muslim by the 16th century. they were conquered by a mix Fulani warriors and Hausa peasantry from 1804 to 1808. In 1808 the Hausa states were finally conquered by Usuman dan Fodio and incorporated into the Hausa-Fulani Sokoto Caliphate.