Pulmonary edema is an abnormal buildup of fluid in the lungs that causes shortness of breath. It occurs when fluid leaks into the tiny air sacs (alveoli) and spaces around the alveoli in the lungs. Pulmonary edema can be caused by issues with the heart like heart failure or heart attack that increase blood pressure in the lungs. Symptoms include cough, difficulty breathing, and wheezing. Treatment focuses on addressing the underlying cause, giving oxygen, diuretics to remove fluid, and in severe cases, use of a ventilator.