 There was a reputed madrasa (school) in Shamsabad during Akbar's reign and even his courtier, the well-known historian Abdul Qadir Badyuni, stayed here for sometime.After the weakening of the Moghal Empire and the founding of Farrukhabad in 1714 by Mohammed Khan Bangash (a Subedar of Farrukh Siyar, the Moghal King in Delhi), Shamsabad was de facto ruled by the Bangash Nawabs till their treaty with East India Company in June 1802.Thereafter, until 1947, it was under the British rule with the exception of a few months in the First War of Independence in 1857.