Life and setting
Al-Juwayni taught in Nishapur and spent a period in the Hijaz, which explains his title Imam al-Haramayn.
Political pressure on Ash‘ari scholars under the Seljuk vizier al-Kunduri interrupted his teaching and helped drive his departure. A change of government brought his return to Nishapur in 1063, where Nizam al-Mulk supported his appointment to the Nizamiyya. His career shows how persecution and patronage could redirect learning: the teacher of al-Ghazali needed institutional protection as well as intellectual authority.