Biliary tract cancer is a rare type of cancer that affects the bile ducts and gallbladder. It is often difficult to diagnose and treat because it does not show symptoms until it has reached advanced stages. Risk factors include age, chronic inflammation of the bile ducts, and certain inherited conditions.