Objective: To investigate the surgical treatment effect and prognostic factors of hilar cholangiocarcinoma. Methods: This is an ambispective cohort study. From August 2005 to December 2022,data of 510 patients who diagnosed with hilar cholangiocarcinoma and underwent surgical resection at the Hepatobiliary Center of the First Affiliated Hospital of Nanjing Medical University were retrospectively collected. In the cohort,there were 324 males and 186 females,with an age of (M (IQR)) 63(13)years (range:25 to 85 years). The liver function at admission was Child-Pugh A (343 cases,67.3%) and Child-Pugh B (167 cases,32.7%). Three hundred and seventy-two(72.9%) patients had jaundice symptoms and the median total bilirubin was 126.3(197.6) μmol/L(range: 5.4 to 722.8 μmol/L) at admission. Two hundred and fourty-seven cases (48.4%) were treated with percutaneous transhepatic cholangial drainage or endoscopic nasobiliary drainage before operation. The median bilirubin level in the drainage group decreased from 186.4 μmol/L to 85.5 μmol/L before operation. Multivariate Logistic regression was used to identify the influencing factors for R0 resection,and Cox regression was used to construct multivariate prediction models for overall survival(OS) and disease-free survival(DFS). Results: Among 510 patients who underwent surgical resection,Bismuth-Corlett type Ⅲ-Ⅳ patients accounted for 71.8%,among which 86.1% (315/366) underwent hemi-hepatectomy,while 81.9% (118/144) underwent extrahepatic biliary duct resection alone in Bismuch-Corlett type Ⅰ-Ⅱ patients. The median OS time was 22.8 months, and the OS rates at 1-,3-,5-and 10-year were 72.2%,35.6%,24.8% and 11.0%,respectively. The median DFS time was 15.2 months,and the DFS rates was 66.0%,32.4%,20.9% and 11.0%,respectively. The R0 resection rate was 64.5% (329/510), and the OS rates of patients with R0 resection at 1-,3-,5-and 10-year were 82.5%, 48.6%, 34.4%, 15.2%,respectively. The morbidity of Clavien-Dindo grade Ⅲ-Ⅴ complications was 26.1%(133/510) and the 30-day mortality was 4.3% (22/510). Multivariate Logistic regression indicated that Bismuth-Corlett type Ⅰ-Ⅲ (P=0.009), hemi-hepatectomy and extended resection (P=0.001),T1 and T2 patients without vascular invasion (T2 vs. T1:OR=1.43 (0.61-3.35),P=0.413;T3 vs. T1:OR=2.57 (1.03-6.41), P=0.010;T4 vs. T1, OR=3.77 (1.37-10.38), P<0.01) were more likely to obtain R0 resection. Preoperative bilirubin,Child-Pugh grade,tumor size,surgical margin,T stage,N stage,nerve infiltration and Edmondson grade were independent prognostic factors for OS and DFS of hilar cholangiocarcinoma patients without distant metastasis. Conclusions: Radical surgical resection is necessary to prolong the long-term survival of hilar cholangiocarcinoma patients. Hemi-hepatectomy and extended resection,regional lymph node dissection and combined vascular resection if necessary,can improve R0 resection rate.