A condition in which air enters and collects within in the pleural space and may cause the lung to collapse. It occurs during heart or lung surgery or as a result of a trauma (such as a gunshot or stab wound) to the chest, but also may occur spontaneously, particularly with violent coughing.