He was born in Hamadan, but soon moved to Kashan, and this is the reason for his pen-name/association (nisba) Kashani. He studied at Kashan and Shiraz, before going to Deccan in India. He then became friends with Shahnavaz Khan of Shiraz (d. 1611), a court official to Ebrahim Adelshah II, the ruler of Bijapur. His first trip to India did not bring him the success he desired, and he was imprisoned for a while due to chargers of being a spy. In 1619 he returned to Iran, placing high hopes of Iranian patrons. He became nostalgic for India (who he was genuinely fond of) and returned in 1621. Until 1628 he was at Agra in the service of Mir Jomla of Shahrestan, who himself was a poet with the pen name of Ruh- al-Amin). He address Ruh al-Amin in several panegyrics. In 1628, due to some eulogies of Abu-al-Ḥasan Āṣaf Khan, he became a member of the Mogul emperor, Shah Jahan (r. 1628-58). He impressed the Shah Jahan so much that in 1632 he was bestowed the title of(Malek al-šoʿarā).
His works amount to 24,000 lines, about 15,000 couplet in his version of the Shah-nama and 9,500 couplets in his Divan. His Divan which has recently been edited and published by the scholar Mohammad Qahreman contains 36 qaṣidas (odes), 2 tarkib-bands (stanzaic or strophic poem), 1 tarjiʿ-band (a poem with a refrain), 32 qeṭʿas (occasional poem), 33 tāriḵs (chronograms), 28 short maṯnawis (rhyming couplets), 590 Ghazals (lyrics), and 102 robāʿis (quatrains), making a total of 9,823 couplets.