During the Three Kingdoms period, it belonged to Anxian County, Wu Jian. However, there is no independent administrative system in western Fujian. During the 500 years since the Qin Dynasty established Minzhong County, Fujian has been developing slowly, but the development is mainly in northern Fujian and eastern Fujian. Of the 10 counties under the jurisdiction of Jian 'an County in Wu Dong, 9 counties in northern Fujian and eastern Fujian can prove this point. In the Western Jin Dynasty, southern Fujian and western Fujian were finally developed. Xinluo County, located in the third year of Taikang in the Western Jin Dynasty (282), was one of the eighteen counties in Fujian at that time and the first county-level organizational system in the history of western Fujian. "In the twenty-fourth year of Tang Kaiyuan (736), Kaifu and Fuzhou set up Tingzhou in the cave" (Lin Tingzhi). "Fujian Tongzhi Geographical Tingzhou" contains: In the 21st year of Tang Kaiyuan, Tang Xunzhong, a long history of Fuzhou, inspected more than 3,000 families of people who escaped from exile in Chaozhou North, Qianzhou East and Xiguang Longdong in Fuzhou, reported to the court and suggested establishing the country. Three years later, Tingzhou was established and named Tingzhou, which was the earliest state in the history of western Fujian. The founding of the state in western Fujian coincided with the heyday of the Tang Dynasty, which was called "the flourishing age of Kaiyuan" in history. Li Longji, Emperor Xuanzong of the Tang Dynasty, launched a campaign to inspect land and build households in order to increase national income and crack down on the strongmen who seized and concealed land. He sent ambassadors and judges to inspect hidden land and sheltered farmers. Then all the detected land will be confiscated and distributed to farmers for farming. Concealed farmers are also registered. Tingzhou was founded under this background.
In the twelfth year of Emperor Taizong's reign (777), Longyan County was transferred to Zhangzhou because there was no waterway connection between Longyan County and Tingzhou, while Beixi and Zhangzhou were "convenient to leave the county". Longyan, which has been in the same administrative region as Tingzhou for nearly 500 years since the Western Jin Dynasty, has gradually merged into Minnan ethnic group and Minnan cultural circle. Since then, western Fujian has been divided between Tingzhou and Zhangzhou. Lin Tingzhi: Yuan Zixu, Tang Kaiyuan is the secretariat (contained in Taiping Guangji); Huang Fan of the Secretariat is the second. The order of the secretariat of Tingzhou Prefecture is: Huang Fan (Tianbao Renzhong), Chen Jian and Yuan Zixu. Huang Fan was the first county magistrate in Longyan area.
Huang Fan, a poet in Tang Dynasty. Xuanzong became a scholar in Kaiyuan. Xuanzong Tianbao is the secretariat of Tingzhou. Poetry is unique and rich in language, and there are poems named at that time.
Yuan Zixu, a friend of Zhang Ji, a famous poet in the Tang Dynasty, was originally a Beijing official and was demoted to Tingzhou Secretariat in the late Yuan Dynasty and early Yuan Dynasty. When Yuan Zixu went to his post, Zhang Ji, then a member of the Ministry of Water Affairs, made a farewell speech and wrote a poem "Send to Emmy, Tingzhou". Poetry cloud:
Zeng Zhao Chengbei returned to Hajj because he was the best official at Chaomen. For the county seat, I resigned from Shuangfengque and my family left for Kowloon Beach.
There are only banana farmers in mountain villages, and there should be more duck pens in water towns. There are few ordinary tourists in secluded places. Who can see thorns and flowers?
Jiulong Beach, the name of the river beach in Jiang Yan, a tributary of Fujian Minjiang River, is the most dangerous place in Liu Qing. Lin Tingzhi said that "those who cross the boat must board the boat with the land". Officials who come to Ting from the north usually enter Fujian from northern Fujian to Yanping (now Nanping), then take a boat through Shaxian, return to Shaxi and Jiang Yan, cross Kowloon Beach, go ashore in Qingliu County, and then go to Tingzhou by land.
Whether it is Huang Fan, a poet in the Tang Dynasty, or Yuan Zixu, a friend of Zhang Ji, a famous poet in the Tang Dynasty, their arrival has made Tingzhou, a wild place, enter the ranks of poetry in the prosperous Tang Dynasty, which is a blessing for Tingzhou.