Margilan is one of the oldest cities in the Fergana Valley and a recognized center of sericulture in Central Asia. Its history dates back more than two millennia, which was confirmed in 2007 when the city's 2,000th anniversary was celebrated under the auspices of UNESCO. Archaeological studies show that settlements and irrigated agriculture existed here as early as the 4th–3rd centuries BC.
While there is a beautiful legend linking the city's founding to Alexander the Great, the first reliable written mentions of Margilan date back to the 9th–10th centuries. In Arab chronicles of the 10th century, it is mentioned under the name "Marginon." Even then, the city was known as an important point on the regional map. Zahir-ud-din Muhammad Babur, in his famous work "Baburnama," described Margilan as one of the eight key cities of Fergana, famous for its gardens and sweet fruits.
Margilan's prosperity was facilitated by its strategic location at the crossroads of the Great Silk Road routes. Trade caravans from China passed through the city, stimulating the development of trade and crafts. During the reign of the Karakhanid dynasty (late 10th – early 13th centuries), the city was considered the primary center in the Fergana Valley. Its importance as a trade and craft hub was maintained in subsequent centuries, including during periods when it was part of the Timurid and Shaybanid states and the Kokand Khanate.
Since ancient times, the main economic and cultural feature of Margilan has been silk production. Local masters became world-famous for their art, and Margilan silk, especially the renowned "khan-atlas," was sold to Egypt, Iran, Greece, and Kashgar. The city's merchants played a key role in Central Asian trade. Silk-weaving traditions are carefully preserved to this day, which is why Margilan holds the status of a World Craft City for Silk and Ikat.