Kunming long profited from its position on the caravan roads through to South-East Asia, India and Tibet. Early townships in the southern edge of Lake Dianchi (outside the contemporary city perimeter)can be dated back to 279 BC, although they have been long lost to history. Early settlements in the area around Lake Dian date back to Neolithic times. The Dian Kingdom, whose original language probably related to Tibeto-Burman languages, was also established near the area.
The Han Dynasty (205 BC-AD 220), seeking control over the Southern Silk Road running to Burma and India, brought small parts of Yunnan into China's orbit, though subsequent dynasties could do little to tame what was then a remote and wild borderland. During the Sui dynasty(581–618), two military expeditions were launched against the area, and it was renamed Kunzhou
Kunming reverted to county status in 1912,under the name Kunming, and became a municipality in 1935. The opening of the Kunming area began in earnest with the completion in 1906-1910 of the Yunnan-Vietnam Railway to Haiphong in north Vietnam (part of French Indochina). Kunming became a treaty port opening to foreign trade in 1908 and soon became a commercial center. Kunming was transformed into a modern city as a result of the outbreak of the Second Sino-Japanese War in 1937 when the invading Japanese forces caused a great number of east-coast Chinese refugees, some of whom were wealthy, to flood into the southwest of China. They brought with them dismantled industrial plants, which were then re-erected beyond the range of Japanese bombers. In addition, a number of universities and institutes of higher education were evacuated there. The increased money and expertise quickly established Kunming as an industrial town. The American Volunteer Group, known as the "Flying Tigers", used Kunming as a base in 1941and 1942 to fly in supplies over the Himalayas from British bases in India in defiance of Japanese assaults.
After 1949 Kunming developed rapidly intoan industrial metropolis with the construction of large iron and steel and chemical complexes, along with Chongqing, Chengdu and Guiyang in the southwest.