He was a patron of art and learning and enjoyed the company of learned scholars and poets. The Persian poet Firdausi, author of the great epic Shahnama, and the great Persian historian and mathematician Al Beruni, were among the eminent scholars patronized by Mahmud.