         Following a number of journeys to Herat, Ray, and Iṣfahān (the latter being the capital of the Seljuqs) in search of libraries and in pursuit of astronomical calculations, Khayyam’s declining health caused him to return to Nayshābūr, where he died in the district of Shādyākh.   