The origin is attributed to the victorious insurrectionary army of the Yuan Dynasty (1271 - 1368 AD) that had passed messages by hiding notes in moon cakes. As gifts, the leader gave moon cakes to his subordinates on the coming Mid-Autumn Festival. Since then, the custom of eating moon cakes on Mid-Autumn Day became established.