The new government in Sabzavar established a Shi'i rule based on the teachings of Hasan Juri. Not long afterward, however, Amir Vali arrived before the city. His group included Ali-yi Mu'ayyad, as well as the Muzaffarid Shah Mansur. 'Ali was reinstated as Sarbadar ruler once the city was captured, but many of his reforms had been abandoned. The partnership with Amir Vali furthermore did not last, and in 1381 the latter was besieging Sabzavar again. 'Ali, believing he had little other choice, asked for the assistance of Timur the Lame. He submitted to the conqueror in Nishapur, and Timur responded by ravaging Amir Vali's lands in Gurgan and Mazandaran. In Radkan, as he was returning from the victorious campaign, he confirmed 'Ali as governor of Sabzavar.