Task: Text Categorization
Input (English): The English adventurer Sir Anthony Shirley became a diplomat for this polity. This dynasty came to power after winning the Battle of Merv against Muhammad Shaybani, and it fell after an invasion by the Hotaki people. This dynasty was nicknamed the Qizilbash or "redheads" because of their headgear of choice. This polity's longest-serving ruler was (*) Tahmasp the Great, who allied with and protected the exiled Humayun. This polity was defeated by Selim the Grim at the Battle of Chaldiron and it reached its height under Abbas I. Its capital was Isfahan and its founder was Ismail I. For ten points, name this Shia dynasty that rivaled the Ottomans in Persia.
Output (English): History