Gobir (Demonym: Gobirawa) was a city-state in what is now Nigeria. Founded by the Hausa in the eleventh century, Gobir was one of the seven original kingdoms of Hausaland, and continued under Hausa rule for nearly seven hundred years. Its capital was the city of Alkalawa. In the early 19th century elements of the ruling dynasty fled north to what is today Niger from which a rival dynasty ruling as Sarkin Gobir (Sultan of Gobir) at Tibiri. In 1975 a reunited traditional sultanate took up residence in Sabon Birni, Nigeria
Gobir was one of the seven original kingdoms of Hausaland, tracing a lineage back to the 11th century. The seat of the dynasty was at Alkalawa, in northwestern Hausaland.
Gobir is particularly remembered as the chief opponent of Fulani Islamic reformer Usman dan Fodio. Bawa, a ruler of Gobir, appears to have invited dan Fodio to the area in 1774; dan Fodio made his home in the small town of Degel, and began preaching. Dan Fodio was given some role in the education of Bawa's nephew and later successor, Yunfa (r.1803-8), but also publicly attacked what he saw as the abuses of the Hausa elite, particularly the burden they placed on the poor.
Sarkin Nafata (r.1797–98) reversed Bawa's tolerant policy, and feared the increase of arms amongst dan Fodio's followers. The next two rulers vacillated between repressive measures and their relaxation.
When Yunfa took the throne in 1803, he soon found himself in conflict with dan Fodio, and after failing to assassinate him, exiled dan Fodio and his followers from Degel. Dan Fodio responded by assembling the nomadic Fulani clans into a jihadist army, beginning the Fulani War. Despite some initial successes by the forces of Gobir and the other Hausaland states (most notably at the Battle of Tsuntua), dan Fodio continued to take surrounding territory. His forces seized the Gobir capital, Alkalawa, in October 1808, killing Sarkin Yunfa. The state was then partially absorbed into the Fulani Empire.