The treatment of insomnia caused by deficiency of heart and spleen (weakness of heart and spleen) includes dietary adjustments and medication, and the choice of specific food and medication should be consulted in detail with the doctor, so as to avoid blind use of medication, and to ensure that the patient’s treatment and medication are safe. 1. Dietary adjustments: insomnia caused by deficiency of heart and spleen is recommended to choose foods that have the effect of regulating qi and blood and strengthening the spleen and stomach, such as jujubes, lotus seeds or poria, etc., which can replenish qi and blood, poria has a certain effect of strengthening the spleen and stomach, which can help patients to improve the symptoms of insomnia, and promote the earliest possible recovery; 2. Drug treatment: while dietary regulation, appropriate drug treatment can be given according to the doctor’s prescription, usually choose drugs with the effect of strengthening the spleen and stomach, tonifying qi and blood, and tranquilizing the mind, such as spleen soup or ginseng spleen pills, etc., which can improve the function of the spleen and stomach, tonify qi and blood, and play the role of tranquilizing the mind and helping the patient to sleep and help to improve the sleep condition. Remember to maintain a light diet and avoid spicy and stimulating foods during the period of taking the above medications to minimize the stimulation of undesirable factors, which can help to improve sleep, alleviate the symptoms of insomnia and promote early recovery. It is recommended to strictly follow the doctor’s instructions for medication, to grasp the adverse effects of drugs, precautions, etc., to ensure the safety of treatment and medication.