Mid-Autumn Festival has a history of over 3,000 years, dating back to moon worship in the Shang Dynasty (1600–1046 BC). It’s such an important festival that many poems were written about it, stories and legends about the festival are widespread, and its origins have been guessed at and explained by generations of Chinese.
The term "Mid-Autumn" first appeared in the book Rites of Zhou (周禮), written in the Warring States Period (475–221 BC).
In the Tang Dynasty (618–907 AD), it was popular to appreciate the moon. Many poets liked to create poems related to the moon when appreciating it. There is a legend that Emperor Xuanzong of the Tang Dynasty visited the Moon Palace in his dream and heard a wonderful song.