In later years, Mufarrij had his sons Ali, Hassan and Mahmud, aid the Fatimid caliph al-Hakim in his military campaigns.[1] According to historian Marius Canard, "an opportunity occurred for Mufarrij to play a part of genuine political significance" in 1012 when the disgraced Fatimid vizier, Abu'l Qasim al-Husayn, took refuge with Mufarrij's son Hassan.[2] Historian Hugh Kennedy asserts that this represented the "high point in the fortunes of the Jarrahid leaders".[11] At that point, the Jarrahids controlled the entire interior of Palestine from the boundary with Egypt up to Tiberias.[11] Under Hassan and Abu'l Qasim's initiative, the Jarrahids attacked and captured Yarukh, al-Hakim's appointee to the governorship of Damascus, in the vicinity of Gaza while he was on his way to Damascus.[2] They concurrently occupied Ramla, and soon after Hassan had Yarukh killed.[2] They further challenged al-Hakim's authority by proclaiming al-Hasan ibn Ja'far, the Sharif of Mecca, as caliph in Ramla.[2] Al-Hakim bribed the Jarrahids to end their revolt, and afterward al-Hasan returned to Mecca, while Abu'l Qasim fled to Iraq.[11] The Jarrahids continued to dominate Palestine and sought to entrench their rule by appealing for support among the local Christians.[2] To that end, Mufarrij contributed to the restoration of the Church of the Holy Sepulchre, which al-Hakim destroyed in prior years.[2]