During the Delhi Sultanate period, majority of the local population were converted to Islam. A large city was situated at the site of the present village of Mehdiabad, northwest of present day Hafizabad.
During the Delhi Sultanate era, most of the local populace embraced Islam. A significant city was located at the location where the current village of Mehdiabad stands, northwest of present-day Hafizabad.