During the turbulent period that followed Kafur's death in April 968, he mediated between the vizier Ja'far ibn al-Furat—a scholar, extremely pious, patron of the "ashraf", and close friend of Abu Muslim—and the other factions to arrive at a power-sharing arrangement.