In most cases, a cough will get better on its own. However, if it doesn’t, it could be a sign of an underlying condition or illness that requires treatment. In general, coughing is one of the ways that your body expels allergens, microbes, and other unwanted airway invaders. As such, a cough will usually last as long as the underlying condition that is causing it is present.