A pneumothorax, commonly known as a collapsed lung, occurs when air leaks into the space between the lung and chest wall. This air pushes on the outside of the lung, causing it to collapse partially or completely. The condition can be life-threatening and requires timely medical intervention.