His commentary on the Quran was the most-varied and many-sided of all extant works of the kind, comprising most of the material of importance that had previously appeared. He devoted himself to a wide range of studies and is said to have expended a large fortune on experiments in alchemy. He taught at Ray (Central Iran) and Ghazni (eastern Afghanistan), and became head of the university founded by Mohammed ibn Tukush at Herat (western Afghanistan).