Toxic substances can cause pulmonary edema through several mechanisms. Some chemicals directly damage the alveolar-capillary barrier, increasing its permeability and allowing fluid to leak into the alveoli. Others may cause systemic toxicity that indirectly affects pulmonary function, such as by inducing cardiogenic edema through heart failure.