When Zhang Qian was sent to the Western Regions in the Han Dynasty, sesame seeds and walnuts were introduced, which added auxiliary materials to the production of moon cakes. At this time, a round cake filled with walnuts appeared, which was called "Hu cake".
In the Tang Dynasty, mooncakes were first recorded. In the Song Dynasty, records about "moon cakes" began to increase. Su Dongpo has a poem: "A small cake is like chewing the moon, and there is crisp and glutinous in it." In addition, the name of "moon cake" was first recorded in the Song Dynasty, but at this time, moon cakes were still not popular. It was not until the Ming Dynasty that moon cakes really became the official food for the Mid-Autumn Festival and gradually spread among the people. In all kinds of books in the Ming Dynasty, a large number of descriptions about eating moon cakes in the Mid-Autumn Festival began to appear. In the Qing Dynasty, the production technology of moon cakes was greatly improved, not only beautifully made, but also the variety was constantly increasing, and moon cakes for the moon could be seen everywhere.