 In the early Islamic times, it was called Mah al-Kufa, the element Mah probably originating from the fact that in the Seleucid period, the city was located in the heartland of Media.Dinawar historically has produced many scholars including Ebn Qotayba, Fakhr-un-Nisa, and Abu Hanifa Dinawari.Dinawar was also the center of the Kurdish principality of the Hasanwayhids.