Background: Prolonged mechanical ventilation (PMV) is common after cardiothoracic surgery, whereas the mechanical ventilation strategy after pulmonary endarterectomy (PEA) has not yet been reported. We aim to identify the incidence and risk factors for PMV and the relationship between PMV and short-term outcomes.Methods: We studied a retrospective cohort of 171 who undergoing PEA surgery from 2014 to 2020. Cox regression with restricted cubic splines was performed to identify the cutoff value for PMV. The Least absolute shrinkage and selection operator regression and logistic regressions were applied to identify risk factors for PMV. The impacts of PMV on the short-term outcomes were evaluated.Results: PMV was defined as the duration of mechanical ventilation exceeding 48 h. Independent risk factors for PMV included female sex (OR 2.911; 95% CI 1.303–6.501; P = 0.009), prolonged deep hypothermic circulatory arrest (DHCA) time (OR 1.027; 95% CI 1.002–1.053; P = 0.036), increased postoperative blood product use (OR 3.542; 95% CI 1.203–10.423; P = 0.022), elevated postoperative total bilirubin levels (OR 1.021; 95% CI 1.007–1.034; P = 0.002), increased preoperative pulmonary artery pressure (PAP) (OR 1.031; 95% CI 1.014–1.048; P < 0.001) and elongated postoperative right ventricular anteroposterior dimension (RVAD) (OR 1.119; 95% CI 1.026–1.221; P = 0.011). Patients with PMV had longer intensive care unit stays, higher incidences of postoperative complications, and higher in-hospital medical expenses.Conclusions: Female sex, prolonged DHCA time, increased postoperative blood product use, elevated postoperative total bilirubin levels, increased preoperative PAP, and elongated postoperative RVAD were independent risk factors for PMV. Identification of risk factors associated with PMV in patients undergoing PEA may facilitate timely diagnosis and re-intervention for some of these modifiable factors to decrease ventilation time and improve patient outcomes.