forced to cede therefore almost all of Azerbaijan according to the Treaty of Gulistan of 1813 to Russia. However, all this only came to be confirmed in the aftermath of the next and last war between Russia and Iran, the Russo-Persian War (1826-1828) and the resulting Treaty of Turkmenchay of 1828. In 1918, Azerbaijan declared independence from Russia and established the Azerbaijan Democratic Republic under its leading Musavat party, but was incorporated into the Soviet Union in 1920. Before Soviet power was established, about 2,000 mosques were active in Azerbaijan. Most mosques were closed in the 1930s, then some were allowed to reopen during World War II. The Soviet rule promoted an Azerbaijani national consciousness as a substitute for identification with the world Islamic community and Iran. During World War II, Soviet authorities established the Muslim Spiritual Board of Transcaucasia in Baku as the governing body of Islam in the Caucasus, in effect reviving the nineteenth-century tsarist Muslim Ecclesiastical Board. During the tenures of Leonid Brezhnev and Mikhail Gorbachev, Moscow encouraged Muslim religious leaders in Azerbaijan to visit and host foreign Muslim leaders, with the goal of advertising the freedom of religion and superior living conditions reportedly enjoyed by Muslims under Soviet communism. During the Azerbaijani SSR, there were 17 mosques functioning in the country. In the 1980s only two large and five smaller mosques held services in Baku, and only eleven others were operating in the rest of the country. Supplementing the officially sanctioned mosques were thousands of private houses of prayer and many secret Islamic sects. The lone center of conservative Shia Islam, was the town of Nardaran, 25 kilometers northeast of central Baku, and was renowned for its thirteenth-century Shia shrine. Unlike the rest of the country which was staunchly secular and which can be considered religiously progressive, Nardaran was the only place in the whole of Azerbaijan where its inhabitants are devoutly religious and fundamentalist, where its streets display religious banners and where most women wear chadors in public. The now banned Islamic Party of Azerbaijan was founded in this town and its base was centered there. There is some evidence of Sufism in Azerbaijan. After the Soviet Union Beginning in the late Gorbachev period, and especially after independence, the number of mosques rose dramatically. Many were built with the support of other Islamic countries, such as Iran, Oman, and Saudi Arabia, which also contributed Qur'ans