Causes of atelectasis may include residual air in the alveoli being absorbed, causing the alveoli to collapse, or foreign object aspiration, pressure on lung tissue from outside forces, such as compression from a diaphragmatic hernia, scoliosis, or enlarged thoracic lymph nodes.