Khomeini accepted the invitation, moved, and took up residence at the Dar al-Shafa school in Qom. Khomeini’s studies included Islamic law (sharia) and jurisprudence (fiqh), but by that time, Khomeini had also acquired an interest in poetry and philosophy (irfan). So, upon arriving in Qom, Khomeini sought the guidance of Mirza Ali Akbar Yazdi, a scholar of philosophy and mysticism.