A cough is a reflex reaction that helps keep the airways clear. It is a natural reflex that removes irritants from the throat and lungs.
A cough occurs when an irritant causes discomfort in your throat and airways, causing the chest and abdomen muscles to forcefully expel the irritant by pushing air out of the lungs.