While the Ottomans were concerned mostly with the westem front of their empire, to the east in Persia a new dynasty called the Safavids came to power in 1502. The Safavids established a powerful state of their own which flourished for over two centuries and became known for the flowering of the arts. Their capital, Isfahan, became one of the most beautiful cities with its blue tiled mosques and exquisite houses. The Afghan invasion of 1736 put an end to Safavid rule and prepared the independence of Afghanistan which occured fommally in the 19th century. Persia itself fell into tummoil until Nader Shah, the last Oriental conqueror, reunited the country and even conquered India. But the rule of the dynasty established by him was short-lived. The Zand dynasty soon took over to be overthrown by the Qajars in 1779 who made Tehran their capital and ruled until 1921 when they were in turn replaced by the Pahlavis.