Pulmonary edema is most commonly associated with left heart failure. When the left side of the heart is unable to pump effectively, fluid backs up into the lungs, leading to pulmonary edema. Right heart failure does not directly cause pulmonary edema.