 Dunhuang's Cave 17, which contained Khotanese literary works, was shut possibly after its caretakers heard that Khotan's Buddhist buildings were being razed by the Muslims.Buddhism then ceased to exist in Khotan.The Imams who helped Yusuf were assassinated by the Buddhists prior to the last Muslim victory.