Bile duct cancer, also known as cholangiocarcinoma, is a rare form of cancer that originates in the bile ducts. These ducts are responsible for carrying bile, a digestive fluid produced by the liver, to the small intestine. The cancer can arise anywhere along the bile ducts, which are divided into intrahepatic (within the liver) and extrahepatic (outside the liver) segments.