Qutb al-Din replaced his father as the ophthalmologist at the Mozaffari hospital in Shiraz. At the same time, he pursued his education under his uncle Kamal al-Din Abu'l Khayr and then Sharaf al-Din Zaki Bushkani, and Shams al-Din Mohammad Kishi. All three were expert teachers of the Canon of Avicenna. He quit his medical profession ten years later and began to devote his time to further education under the guidance of Nasir al-Din al-Tusi. When Nasir al-Din al-Tusi, the renowned scholar-vizier of the Mongol Holagu Khan established the observatory of Maragha, Qutb al-Din Shirazi became attracted to the city. He left Shiraz sometime after 1260 and was in Maragha about 1262. In Maragha, Qutb al-din resumed his education under Nasir al-Din al-Tusi, with whom he studied the al-Esharat wa'l-Tanbihat of Avicenna. He discussed with al-Tusi the difficulties he had understanding the first book of the Canon of Avicenna. While working in the new observatory, he studied astronomy under al-Tusi. One of the important scientific projects was the completion of the new astronomical table (zij). In his testament (Wasiya), al-Tusi advises his son ṣil-a-Din to work with Qutb al-Din in the completion of the Zij.