You can eat garlic when you have a cough because cough is mainly caused by some inflammatory reactions in the respiratory system, which is commonly invaded by viruses, bacteria, mycoplasma, chlamydia and other pathogens, causing inflammation of the respiratory tract, such as bronchitis and pneumonia. Garlic contains a lot of allicin, which has a certain bactericidal and antibacterial effect. Eating a little garlic at this time can help the body to kill the invasion of these pathogens, which can reduce the cough symptoms and is beneficial to the condition. However, for people who are allergic to garlic or even have digestive system diseases, such as gastritis or gastric ulcer, eating garlic at this time may stimulate the body to produce discomfort. Do not eat garlic at this time of coughing for the time being, and you should mainly eat light, easily digestible and absorbable food.