Qazvīn, city, capital of Qazvīn province, north-central Iran. The city sits in a wide, fertile plain at the southern foot of the Elburz Mountains. Originally called Shad Shāhpūr, it was founded by the Sāsānian king Shāpūr I about 250 ce. It flourished in early Muslim times (7th century), serving as