Pneumothorax, commonly known as a collapsed lung, occurs when air accumulates in the pleural space between the lung and the chest wall. This buildup of air prevents the lung from fully expanding, leading to breathing difficulties and chest pain. Pneumothorax can develop spontaneously, due to injury, or as a complication of underlying lung disease.