Gujiao was part of the
State of Jin during the
Spring and Autumn period, and part of
Zhao in the
Warring States period. It was the western part of
Jinyang throughout the following dynasties of Han, Wei, Jin and Northern Dynasties. During the
Sui and
Tang dynasties, the part of Gujiao to the south of
Fen River, the majority part of nowadays Gujiao, was part of
Jiaocheng County and the minor part to the north of
Fen River was part of
Yangqu County. In the year 596 AD in
Sui dynasty, the western part of
Jinyang was separated to set up the county of Jiaocheng, and the county seat was in Gujiao. In 691 AD, the county seat of Jiaocheng was moved to Dalingzhuang, part of today's
Jiaocheng County, in order to get easier access of the national roads of Sui dynasty. In 713 AD, the northern part of Jiaocheng County is separated to set up Luchuan County, with the county seat at Luyukou at today's Gujiao. In 714, the Luchuan county was removed, and divided by the
Fen River, Gujiao was split between
Jiaocheng County and
Yangqu County ever after, for more than one thousand years. In 1958, Gujiao industrial and mining district () of Taiyuan was established. In 1988, the district was replaced with a county-level city, and it has remained so ever since. == Natural resources ==