The history of Nantou dates back to 331 CE. It was known as Dongguan () as it was the capital of Dongguan Prefecture, which was, amongst others, the areas covering present-day
Dongguan,
Shenzhen,
Hong Kong,
Huizhou,
Zhongshan,
Zhuhai and
Macau prior to any European settlements. At the same time, it was also the administrative centre of Bao'an, then one of the six counties comprising Dongguan. Since then, it has been repeatedly reported to be prosperous in the salt industry. In 736 CE, during the
Tang dynasty, the city itself was fortified with imperial troops and became known as Tunmen (). The current walled city was built in 1394, at almost exactly the area of Dongguan, when the government of the
Ming dynasty revived the coastal defence after the fall of the
Mongol-led
Yuan dynasty. It then remained as the administrative centre. Historic reports suggested that the Ming dynasty admiral
Zheng He and his crew once sailed pass Nanshan and encountered dangers in the area during the
treasure voyages. He went on land and prayed for luck in the
Tianhou Temple in Chiwan, which was near to the town itself. In 1573, 7,608 families, or 33,971 inhabitants, who lived around Dongguan prefecture, moved into the town by the order of the government. Xin'an County was since established. Nantou gradually lost its prestige as the completion of the
Kowloon-Canton Railway made the market town of
Shenzhen, east of Nantou more prosperous. The administrative center of the county was moved to Shenzhen in 1953, and remained there until 1979, when the entirety of Bao'an County was renamed Shenzhen and elevated to city status. ==Layout==