sentences:  This conflict between the two Tahirids would continue for several years.In 879 the Saffarid Ya'qub died and was succeeded by his brother Amr bin Laith.Amr reached an agreement with the caliph and was invested with Khurasan, replacing Muhammad.