The Kashi Vishwanath Temple was demolished by Aurangzeb, the sixth Mughal emperor who constructed the Gyanvapi Mosque atop the original Hindu temple. Aurangzeb's demolition of the temple was motivated by the rebellion of local zamindars (landowners) associated with the temple, some of whom may have facilitated the escape of the Maratha king Shivaji.