Kunwar Rai Singh was ruling in this territory before Shams-ud-din Iltutmish, as a governor of Badaun invaded him around 1212 AD.