Biliary tract cancers, which arise from the intrahepatic or extrahepatic bile ducts and the gallbladder, generally have a poor prognosis and are rising in incidence worldwide. The standard-of-care treatment for advanced biliary tract cancer is chemotherapy with gemcitabine and cisplatin. Because most biliary tract cancers have an immune-suppressed microenvironment, immune checkpoint inhibitor monotherapy is associated with a low objective response rate. We aimed to assess whether adding the immune checkpoint inhibitor pembrolizumab to gemcitabine and cisplatin would improve outcomes compared with gemcitabine and cisplatin alone in patients with advanced biliary tract cancer.