According to the plaintiffs, Shahi Jama Masjid at Chandausi was built by Mughal emperor Babar in 1526 after demolishing Shri Harihar temple.