Srinagar has been the main city of the Kashmir valley for well over a thousand years; tradition credits its founding to the Mauryan emperor Ashoka, and the later king Pravarasena II built a new capital near the present site. Hindu and Buddhist dynasties were followed from the 14th century by the Shah Mir sultans, under whom Islam spread through the valley; Sultan Zain-ul-Abidin (Budshah) is still remembered for his tolerance and patronage of crafts.
The Mughals, who took Kashmir in 1586, loved the valley as a summer retreat. Emperor Jahangir and his successors laid out the terraced gardens of Shalimar, Nishat and Chashme Shahi on the slopes above Dal Lake. Afghan, Sikh and then Dogra rule followed; under the Dogras, the British, who could not own land, began living on houseboats on the lake.
Srinagar is now the summer capital of the union territory of Jammu and Kashmir. Its old city, along the Jhelum river, keeps wooden mosques, shrines and bridges.