Cardiopulmonary bypass triggers a systemic inflammatory response that alters pulmonary endothelial function, which can contribute to pulmonary hypertension. Milrinone is a type III phosphodiesterase inhibitor. The objective of this study was to compare the effects of inhaled and intravenous milrinone on the pulmonary endothelium-dependent relaxations and hemodynamic and oxygenation parameters after cardiopulmonary bypass in a porcine model. Five groups of Landrace swine were compared: (1) control group, no cardiopulmonary bypass; (2) bypass group, 90 minutes of normothermic bypass and 60 minutes of reperfusion; (3) inhaled milrinone group, bypass preceded by a 1.8-mg bolus of inhaled milrinone followed by a continuous milrinone nebulization; (4) intravenous milrinone group, bypass preceded by 2 mg of intravenous milrinone; and (5) inhaled NaCl group, bypass preceded by inhaled saline solution. After sacrifice, pulmonary arterial endothelium-dependent relaxations to acetylcholine and bradykinin were studied in organ chambers. Inhaled milrinone caused less hypotension ( P < .05), a lesser decrease in peripheral vascular resistances ( P < .01), and a lower heart rate ( P < .05) than intravenous milrinone. Inhaled milrinone prevented the alterations in relaxations of pulmonary arteries to acetylcholine caused by cardiopulmonary bypass, and relaxations to bradykinin were improved in the inhaled milrinone group ( P < .05) compared with the cardiopulmonary bypass and control groups. Inhaled milrinone prevents the occurrence of the pulmonary endothelial dysfunction seen after cardiopulmonary bypass. The hemodynamic and oxygenation profiles obtained with inhaled milrinone are safer than with intravenous milrinone. These strategies might be useful in preventing pulmonary hypertension after cardiac surgery.