Chagatayid rule in Moghulistan was temporarily interrupted by the coup of the Dughlat amir Qamar ud-Din, who likely killed Ilyas Khoja in 1368 and several other Chagatayids. The Moghuls that remained obedient to him were constantly at war with Timur, who invaded Moghulistan several times but was unable to force its inhabitants into submission. A Chagatayid restoration occurred in the 1380s, but the Dughlats retained an important position within the khanate; for the next forty years they installed several khans of their own choosing.