A cough reflex is preceded by a long-drawn and deep inspiration that is followed by by a complete closure of the glottis, resulting in strong expiration.
This suddenly pushes the glottis, open and forces a blast of air through the mouth.
The stimulus for this reflex act could be a foreign particle lodged in the trachea.