Coughing can be caused by a range of factors, both infectious and non-infectious. Infectious causes include viral infections like the common cold and influenza, bacterial infections such as pertussis, and fungal infections like histoplasmosis. Non-infectious causes can include chronic conditions like asthma, allergies, and environmental irritants such as smoke or pollution.