Under Tughril Beg's successor, Malik Shah (1072–1092), Iran enjoyed a cultural and scientific renaissance, largely attributed to his brilliant Iranian vizier, Nizam al Mulk. These leaders established the Isfahan Observatory where Omar Khayyám did much of his experimentation for a new calendar, and they built religious schools in all the major towns. They brought Abu Hamid Ghazali, one of the greatest Islamic theologians, and other eminent scholars to the Seljuk capital at Baghdad and encouraged and supported their work.[25]