In ancient times, mooncakes were eaten as sacrifices during the Mid-Autumn Festival. It is said that the custom of eating mooncakes during the Mid-Autumn Festival began in the Tang Dynasty. During the Northern Song Dynasty, it was popular in the court, but also spread to the people. At that time, it was commonly known as "small cakes" and "moon balls". By the Ming Dynasty, it had become a common dietary custom shared by all people. Today, there are more varieties and flavors vary from place to place.