Abstract: Objective: To study the prescription rules of the medicinal diet for insomnia, in order to provide theoretical basis and guidance for the personalized diet care of insomnia patients and the development of the medicinal diet products for insomnia. Methods:Systematically sort out the ancient and modern medicinal diet for insomnia in the Chinese Medicinal Diet Dictionary,establish a database,carry out frequency statistics on the four qi and five flavors and meridian tropism of the raw materials of the medicinal diet, and use the TCMICS (V3.0) to carry out association rules and cluster analysis. Results: According to the statistics of 278 medicinal dietary prescriptions for insomnia, the top five raw materials used most frequently were Longan Arillus,Jujubae Fructus,Lycii Fructus,wine and Nelumbinis Semen. The raw materials are mainly mild, warm and sweet, and mainly enter the liver, kidney and spleen channels. The commonly used combinations of medicine and food are Longan Arillus and Lycii Fructus, Longan Arillus,and wine,and 5 core categories are clustered. Conclusion:The prescriptions of medicinal diet for insomnia included in the Chinese Medicinal Diet Dictionary follows the principle of supplementing deficiency and discharging excess, regulating yin and yang simultaneously, and achieves the goal of treating both body and spirit by regulating the five viscera. The raw materials are mainly products of tonifing and calming the mind,supplemented by astringent,clearing heat,resolving phlegm,activating blood and removing blood-stasis. Its compatibility pays attention to supplementing and boosting qi and blood,so as to reinforce healthy qi and eliminate pathogen.