The history of Guilin spans over two millennia, during which time it has transformed from a military garrison into one of China's most picturesque tourism hubs. Its name, meaning "Forest of Sweet Osmanthus," speaks to the natural abundance that has always played a key role in its development.
The foundation and early period of the city are rooted in ancient times. Although the first settlements on the banks of the Li River appeared as early as the 4th century BC, the city was formally established as an administrative unit in 111 BC during the Han Dynasty, when Shi An County was founded. Initially developing as a military and administrative settlement, Guilin acquired special strategic importance following the construction of the Lingqu Canal. This canal connected the Li River with the Yangtze basin, significantly boosting its trade and transport significance.
Key factors in the city's formation were its geographical location and political status. Situated on the banks of the Li River amidst unique karst mountains, Guilin has always been a vital transport and trade hub in southern China. This fostered not only economic growth but also cultural exchange. Throughout the centuries, particularly during the Tang (618–907) and Song (960–1279) dynasties, Guilin served as the political and cultural centre of the region. In the 14th century, under the Ming Dynasty, it officially became the capital of Guangxi province and remained so for several centuries.
The city's economic prosperity was closely tied to its trade and craftsmanship. Thanks to its convenient location on trade routes, crafts and commerce flourished in the city, while local residents engaged in agriculture, particularly rice cultivation. The incredible landscapes of Guilin also shaped its rich cultural heritage, inspiring poets and artists for centuries. The city became a melting pot for the cultures of various ethnic groups, such as the Zhuang, Yao, and Miao, which enriched its traditions and folklore.