History
Long before Tehran existed, the plain at the foot of the Alborz was dominated by Rey, ancient Rhages, a major city of Parthian and early Islamic Iran and the birthplace of the physician al-Razi, until the Mongols sacked it in the 13th century. North of the mountains, the Caspian provinces of Tabaristan and Gilan resisted the Arab conquest for generations behind their forests and passes; local dynasties ruled there long after the plateau had become Muslim, and the Daylamites of the Gilan highlands produced the Buyids, who took Baghdad in the 10th century.
In the Alborz north of Qazvin, Hassan-i Sabbah seized the castle of Alamut in 1090, making it the base of the Nizari Ismaili state, the "Assassins" of Western legend, until the Mongols took it in 1256. Qazvin became the Safavid capital under Shah Tahmasp in the mid-16th century, before Shah Abbas moved the court to Isfahan. Tehran was a modest town until Agha Mohammad Khan, founder of the Qajar dynasty, made it his capital in 1786.
Under the Qajars and Pahlavis Tehran grew into the country's political and economic centre, and it was the stage for the constitutional revolution of 1906, the 1953 coup and the revolution of 1979. The north had its own upheavals: Russian troops occupied Gilan in the early 20th century, and Mirza Kuchik Khan's Jangali forest movement briefly declared a Soviet-backed republic there in 1920–21. Since the mid-20th century the capital's growth has spilled west into Karaj and north over the mountains, turning the Caspian shore into Tehran's holiday coast.
