Bile duct cancer, or cholangiocarcinoma, is a malignant tumour of either the bile ducts within the liver (intrahepatic), or those leading from the liver to the small intestine (extrahepatic).