The history of Mazar-i-Sharif, whose name translates as "The Noble Shrine," is inextricably linked with one of the most revered sanctuaries in Afghanistan — the Blue Mosque. The city grew around the site which, according to local tradition, is the burial place of Ali ibn Abi Talib, the cousin and son-in-law of the Prophet Muhammad.
According to legend, the burial site was lost for centuries until the 12th century, when a local mullah had a dream revealing the exact location of the grave. By order of the Seljuk Sultan Ahmad Sanjar, the first mausoleum was erected on this spot in 1136, around which a settlement gradually began to form. The original structure was destroyed during the invasion of Genghis Khan, but in the 15th century, specifically in 1481, the ruler of Khorasan, Husayn Bayqara, built a new, more majestic complex, which became the core of the future city.
The growth and development of the city were defined by several key factors. Firstly, its religious significance: its transformation into a major center of pilgrimage contributed to population growth and infrastructure development. Secondly, its advantageous location at the intersection of ancient caravan routes made Mazar-i-Sharif an important trading center of northern Afghanistan, connecting the regions of Khorasan and Transoxiana. Finally, in the 19th century, following the decline of the neighboring ancient city of Balkh, Mazar-i-Sharif took over the role of the regional capital, which strengthened its administrative and economic status.
From the very beginning, the cultural and economic life of the city was centered around the Blue Mosque. This defined its character as a spiritual center. The economy was closely tied to serving pilgrims and trade: crafts necessary for maintaining and decorating the mosque, as well as for the needs of numerous guests, flourished here. Markets and caravanserais were an integral part of the urban landscape, making Mazar-i-Sharif a lively and multinational hub where representatives of different peoples and cultures met.