A cough is a reflex action that helps clear the airways of mucus and irritants. Coughs can be caused by a variety of factors, including viral infections, allergies, and smoking. In most cases, coughs will go away on their own, but treatment may be necessary in some cases.