According to historical research, sesame seed cake came from the western regions during Ban Chao in Han Dynasty. There is a record in "Continued Han": "Lingdi loves Hu cakes." Hu cake is the earliest sesame cake, which was popular in the Tang Dynasty. "History as a Mirror Xuanzong" records: During the Anshi Rebellion, Xuanzong of the Tang Dynasty and Yang Guifei fled to Jixian Palace in Xianyang, and there was nothing to eat. Yang Guozhong, the prime minister, went to the market to buy Hu cakes and presented them. At that time, Chang 'an was famous for making sesame cakes, and it was the first to promote a shop called Fuxingfang. For this reason, the poet Bai Juyi wrote a poem saying: "Sesame cakes are like Kyoto, and the noodles are crispy and oily." I sent it to Ambassador Hungry Yang, and the taste of incense seems to be auxiliary. " It is said that buying cakes in Xianyang is not like sesame cakes in Chang 'an Fuxing Square. The method of sesame cake is to take clear flour, sesame spiced salt noodles, clear oil, alkaline noodles, sugar and so on as raw and auxiliary materials, ferment the dough, add crispness to taste, pull the agent to shape, brush the sugar color, stick sesame seeds, and bake in the furnace, so Bai Juyi said that the noodles are crisp and oily. This practice is similar to modern sesame seed cake. In the Song Dynasty, Tao Gu's book "Qing Yi Lu" recorded: "Nuo people were lucky for the food of Shu, and some imperial maids offered square towels and flour to promote their food, and the villagers offered wine to them. They preferred to soak the noodles with wine and put cakes on them, and they sobbed and said,' This disaster-relief cake.' Begging for half a piece. "Said in August 880, Huang Chao peasant uprising, soldiers forced changan, Tang Xizong fled, didn't eat, maid-in-waiting with a little flour out of the palace, with the wine sent by the villagers, dough together, first branded in the pot, then baked in the furnace, and showed it to him, saying it was a cake to eliminate evil. Nuo zong barely ate half a piece. This method of baking first is the same as now. The "disaster relief cake" does not need sesame seeds, which is probably the fire now. Jia Sixie's Qi Min Yao Shu in the Northern Wei Dynasty already had "baked wheat cake practice", which was almost the same as that in the Tang Dynasty.