Pulmonary edema is a condition caused by excess fluid in the lungs. This fluid collects in the numerous air sacs in the lungs, making it difficult to breathe. In most cases, heart problems cause pulmonary edema. But fluid can collect in the lungs for other reasons, including pneumonia, exposure to certain toxins and medications, trauma to the chest wall, and traveling to or exercising at high elevations. Pulmonary edema that develops suddenly (acute pulmonary edema) is a medical emergency requiring immediate care. Pulmonary edema can sometimes cause death. The outlook improves if you get treated quickly. Treatment for pulmonary edema varies depending on the cause but generally includes supplemental oxygen and medications.