Coughing while sleeping is first considered to be caused by dry air, and usually requires no treatment. Secondly, it may be caused by cough variant asthma, allergic cough and other diseases, which can be treated with medication. 1. Dry air: If you sleep with the air conditioner on at night, it will lead to low humidity in the room, and long-term exposure to a dry environment will cause coughing. Patients can drink more water and place a humidifier indoors if necessary. 2. Cough variant asthma: The causes of cough variant asthma are mostly related to genetic and environmental factors. Symptoms mainly manifested as dry cough, night and early morning cough obvious. Patients need to take glucocorticoid medication, such as dexamethasone, as prescribed by the doctor. Leukotriene modifiers, such as montelukast, are also available. At the same time, patients can also choose to inhalation β₂ agonist treatment, such as salmeterol. 3. Allergic cough: If there are indoor allergens, the patient sleeps at night exposure to allergens will cause allergic cough. Patients need to take antihistamines as prescribed by the doctor, such as cetirizine and loratadine. At the same time to clarify the allergens, to avoid re-exposure. There are many other reasons for coughing while sleeping, such as gastroesophageal reflux stimulating cough, nasal secretion reflux stimulating cough, etc. It is recommended that patients seek medical treatment in a timely manner, standardize the use of medication under the guidance of a doctor, and not use their own medication, so as to avoid aggravating the condition.