The difference between cholangiocarcinoma and hepatocellular carcinoma can be judged from histological origin, tumor markers, imaging tests, and medical history. 1. Histologic origin: cholangiocarcinoma histology originates from bile duct epithelial cells, while hepatocellular carcinoma histology originates from hepatocytes. 2. Tumor markers: the main growing tumor marker for primary hepatocellular carcinoma is alpha-fetoprotein (AFP), while the main growing tumor marker for cholangiocarcinoma is glycan antigen 199 (CA199). 3. Imaging examination: in primary hepatocellular carcinoma, suspicious occupying lesions can be found in the liver in ultrasound. In enhanced CT, fast-in-fast-out imaging manifestation can be seen. In hilar cholangiocarcinoma, ultrasound can show dilatation of intrahepatic bile ducts, non-dilatation of extrahepatic bile ducts and atrophic gallbladder. In extrahepatic cholangiocarcinoma, there may be dilated extrahepatic bile ducts and enlarged gallbladder on ultrasound. If it is intrahepatic bile duct cancer, localized intrahepatic mass can be seen on ultrasound. 4. Medical history: The history of hepatocellular carcinoma is mostly hepatitis and cirrhosis. The history of cholangiocarcinoma is mostly hepatitis, cirrhosis, etc. The history of cholangiocarcinoma is mostly intrahepatic choledocholithiasis, choledochal cyst, Schistosoma oryzae infection. The final diagnosis of cholangiocarcinoma and hepatocellular carcinoma is based on postoperative pathological results, and patients should actively consult doctors for relevant treatments according to their conditions.