Definition: In this task you will be given a text passage from a trivia quiz. You should choose the category this question belongs to from these categories: History, Science, Social Science, Fine Arts, Literature. You can only choose one category, so if in doubt, please choose the closest match.
Input: The Chehel Sotun was erected under the auspices of this dynasty. It weakened under the reign of Shah Tahmasp, and its troops were organized into ghulams, tofangchis, and topchis under the military reforms of the Englishman Robert Sherley. Before it lost the important Diyarbakir site, this dynasty's greatest leader expelled Portuguese traders from their most popular port, and its capital fell to Ghizlzai Afghans in 1722. Its founder captured Tabriz from the White Sheep federation of Uzbek Turkmen, and this dynasty was eventually supplanted by Nader Shah. Its capital was moved to Esfahan in the early 17th century, and it was founded by Isma'il I and reached its peak under Abbas I. Lasting from 1502 to 1736, for 10 points, name this dynasty that established Shi'a Islam as the state religion, and which was based in Iran.
Output:
History