After his loss of power, Amir Vali spent some time in the service of the Jalayirids. He participated in defending Tabriz during the siege of Tokhtamysh, khan of the Golden Horde. After the city was sacked he travelled to Mazandaran, where he attempted to stage a rebellion against Timur in 1386. The rebellion failed and Vali was killed, bringing an end to his long career.