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. Here, BRCA1 is linked to esophageal cancer.