Ginger has strong anti-inflammatory properties and is rich in antioxidants. That is due to a compound known as gingerol, which is present in high quantities in ginger. This compound plays a crucial role in relieving the throat that becomes irritated and inflamed due to coughing. A study suggested that ginger components can also relax airway muscles. An animal study found that ginger extract was highly effective in preventing cough in the subjects.