Pulmonary embolism occurs when a blood clot or foreign material blocks one of the pulmonary arteries in the lungs. It can be caused by deep vein thrombosis, when a blood clot forms in the deep leg veins or pelvis and travels to the lung. Risk factors include immobility, recent surgery, cancer, and estrogen-containing medications. Symptoms may include chest pain, difficulty breathing, and a rapid heart rate. Diagnosis involves blood tests, imaging like CT scans, and pulmonary function tests. Treatment focuses on blood thinners to prevent further clots and dilation of existing clots, as well as oxygen, medications, and occasionally clot-busting drugs to restore lung function and relieve symptoms.