 While he was in Dunhuang, that city was subdued in 420 and again in 421 by the Northern Liang king, Juqu Mengxun.It is probable that Juqu had already heard about Dharmakṣema since the biographical records imply that Juqu sought him and installed him in the palace temple in Guzong, the Northern Liang capital, by 421.Almost immediately, Dharmakṣema was put to work translating the Nirvāṇa Sūtra by Juqu who may have been interested in the prophecies contained in that text concerning the "end-days" of the Dharma.