While the Ottomans were concerned mostly with the western 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 occurred formally in the 19th century. Persiaitself fell into turmoil 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.