Allicin can treat coughs caused by respiratory infections, but garlic is not the same as allicin. As a plant antibiotic, allicin has some anti-inflammatory, fungal, bacterial, and viral effects, but garlic is not used as a medicine for coughs. If the cough is due to bacterial or fungal infection of the respiratory tract, eating allicin has some effect. If the cough is caused by airway hypersensitivity, garlic has some irritation and eating garlic will in turn cause coughing, so it is still important to clarify the cause of the cough and not to eat garlic blindly. When coughing, you need to pay attention not to eat sweets, and not to eat cold, spicy or irritating food.