He became close to Princess Nazli Fazl, and his contacts with the Egyptian upper class led to his marriage to the daughter of the Egyptian prime minister Mustafa Fahmi Pasha, whose friendship with Evelyn Baring, 1st Earl of Cromer, then the effective British ruler of Egypt, accounts in part for the eventual acceptability of Zaghloul to the British occupation.