ObjectiveTo construct a reliable nomogram available online to predict the postoperative survival of patients with perihilar cholangiocarcinoma.MethodsData from 1808 patients diagnosed with perihilar cholangiocarcinoma between 2004 and 2015 were extracted from the National Cancer Institute Surveillance, Epidemiology, and End Results (SEER) database. They were randomly divided into training and validation sets. The nomogram was established by machine learning and Cox model. The discriminant ability and prediction accuracy of the nomogram were evaluated by concordance index (C-index), receiver operator characteristic (ROC) curve and calibration curve. Kaplan-Meier curves show the prognostic value of the associated risk factors and classification system.ResultsMachine learning and multivariate Cox risk regression model showed that sex, age, tumor differentiation, primary tumor stage(T), lymph node metastasis(N), TNM stage, surgery, radiation, chemotherapy, lymph node dissection were associated with the prognosis of perihilar cholangiocarcinoma patients relevant factors (P