This period coincides with the Seljuk era. In this era, Nizam al-Mulk proposed the movement of building schools and religious-political competitions, so the history of the Shiite seminary is not very clear. Although "Hossein Soltanzadeh" the author of the "History of Iranian schools" has mentioned six schools in this era, it is doubtful that they are Shiites. It can be said that Iran has been in political and cultural turmoil since the second half of the fifth century AH, from the Mongol invasion (1219–1221 CE) to the time of Ghazan Khan, one of the Ilkhanate kings (1295-1304 CE). Until he came to power and converted from Buddhism to Islam and change his name to "Mahmoud" and disobeyed the great Mongol empire based in China. To improve the situation in the country, Ghazan Khan enacted a series of far-reaching reforms and laws and regulations that produced brilliant results. Following Ghazan Khan, nearly 100,000 Mongols converted to Islam, and his successor, Öljaitü (1304-1316 CE), was nicknamed "Muhammad Khodabandeh" by the Shiites on the occasion of his conversion to the Shiite religion. Thus, until the extinction of the Ilkhanid dynasty of Iran, Islam was the official religion of the Ilkhanate government and its reign was based on Islamic law and customs.