A spontaneous pneumothorax is the sudden onset of a collapsed lung without any apparent cause, such as a traumatic injury to the chest or a known lung disease. A collapsed lung is caused by the collection of air in the space around the lungs.