There are many stories about the origin of China's Mid-Autumn Festival. As well as the history below, there are several legends that explain the origin of the festival in a more fanciful way.
The term "Mid-Autumn" first appeared in the book Rites of Zhou (周礼), written in the Warring States Period (475–221 BC). But the term only related to the time and season; the festival didn't exist at that point.
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.
In the Northern Song Dynasty (960–1127 AD), the 15th day of the 8th lunar month was established as the "Mid-Autumn Festival". From then on, sacrificing to the moon was very popular, and has become a custom ever since.
During the Ming Dynasty (1368–1644 AD) and the Qing Dynasty (1644–1912 AD), the Mid-Autumn Festival was as popular as Chinese New Year. People promoted many different activities to celebrate it, such as burning pagodas and performing the fire dragon dance.
Worshiping the moon entailed placing a large table in the middle of the yard under the moon, and putting offerings, such as fruit and snacks, on the table.
Nowadays, many traditional activities are disappearing, but new trends have been generated. Most workers and students regard it as a public holiday to escape work and school. People go out traveling with families or friends, or watch the Mid-Autumn Festival Gala on TV at night.
Ancient Chinese emperors worshiped the harvest moon on the 15th day of the 8th month of the Chinese lunar calendar, as they believed that the practice would bring them a plentiful harvest the following year.
The custom of offering sacrifices to the moon originated from worshiping the moon goddess, and it was recorded that kings offered sacrifices to the moon in fall during the Western Zhou Dynasty (1045–770 BC).
The sacrificial offerings include apples, plums, grapes, and incense, but mooncakes and watermelons (pomelos in the south) are essential. The watermelon's (or pomelo's) skin is sometimes sliced and opened up into a lotus shape when offered as a sacrifice.
Appreciating the moon has been a traditional custom since the Tang Dynasty. Not just the rich merchants and officials, but also the common citizens, began appreciating the moon together during that time.
The rich merchants and officials held big parties in their large courts. They drank and appreciated the bright moon. Music and dances were also indispensable. The common citizens just prayed to the moon for a good harvest.
The tradition of eating mooncakes during the festival began in the Yuan Dynasty (1271–1368), a dynasty ruled by the Mongols.
At the end of the Yuan Dynasty, the Han people's resistance wanted to overthrow the rule of the Mongols, so they planned an uprising together. But they had no way to inform other Han people who wanted to join them of the time of the uprising without being discovered by the Mongols.
The military counselor of the Han people's resistance army, Liu Bowen, thought out a stratagem related to mooncakes. Liu Bowen asked his soldiers to write "uprising on the night of the Mid-Autumn Festival" on slips of paper, put them in mooncakes, and then sell them to the other Han people.
When the night of the Mid-Autumn Festival came, a huge uprising broke out and the Han people succeeded.
From then on, people ate mooncakes every Mid-Autumn Festival to commemorate the uprising (although this is little-remembered today).