Al-Yazuri was born in Yazur where he later worked as a judge, before traveling to Ramla.
When faced with the governor of Ramla, al-Yazuri fled to Cairo and entered service as a eunuch servant to the princess mother of al-Mustansir Billah called Rasad.
The Byzantine Empire and Egypt were at peace for some time, and had an agreement to lead each other aid in the event of famine due to lack of wheat in one of the two territories.
In 1055, Fatimid exile al-Muayyad fi l-Din Abu Nasr Hibat Allah was able to intercept Byzantine reports that Seljuk sultan Tughril had made a pact with the Greeks against the Fatimids, before coming into contact with the Turkish forces who subsequently promised the help the Fatimid conquest of Baghdad.
In 1058, al-Yazuri was arrested and accused of corresponding with Tughril and supporting Fatimid rivals and enemies of the state.