In this case-control study of 63 828 patients with 14 common cancer types and 37 086 controls, pathogenic variants in BRCA1 were associated with biliary tract cancer, in BRCA2 with esophageal cancer, and in BRCA1/2 with gastric cancer. This evidence concerns the gene BRCA1 and biliary tract cancer.