Coughing is a reflex action that helps to clear the airways of irritants, mucus, or foreign particles. It is a protective mechanism of the respiratory system.