HER2 overexpression or amplification, which is present in 15% of all cases of biliary tract cancer, has been identified as a druggable molecular target by genomic profiling. In the phase 3 ABC-06 trial, the folinic acid, fluorouracil, and oxaliplatin (FOLFOX) regimen showed a survival benefit compared with active symptom control as second-line therapy for biliary tract cancer. We aimed to evaluate the clinical activity of FOLFOX plus anti-HER2 antibody trastuzumab as a second-line or third-line treatment for HER2-positive biliary tract cancer. This study was an investigator-initiated, open-label, non-randomised, single-arm, multi institutional, phase 2 trial in participants aged 19 years or older with HER2-positive (defined as immunohistochemistry 3+ or immunohistochemistry 2+ and in-situ hybridisation positive or ERBB2 gene copy number ≥6·0 by next-generation sequencing) biliary tract cancer (intrahepatic cholangiocarcinoma, extrahepatic cholangiocarcinoma, and gallbladder cancer) who progressed on chemotherapy containing gemcitabine and cisplatin (with one or two previous chemotherapy lines permitted). In cycle one, patients received intravenous trastuzumab-pkrb at 6 mg/kg on day 1, and FOLFOX (consisting of intravenous oxaliplatin [85 mg/m2], intravenous leucovorin [200 mg/m2], and fluorouracil [400 mg/m2 bolus] all on day 1, and fluorouracil [2400 mg/m2 infusion] on days 1-2. In cycle two onwards, participants were administered intravenous trastuzumab-pkrb at 4 mg/kg and FOLFOX, every 2 weeks, until unacceptable toxic effects or disease progression. The primary endpoint of the study was objective response rate based on RECIST version 1.1, assessed in the participants who completed at least one study cycle. The response rate threshold for a positive objective response rate was 25%. This trial is registered with ClinicalTrials.gov (NCT04722133) and is ongoing. 34 participants were enrolled between June 26, 2020, and Sept 1, 2021. At the time of data cutoff on May 1, 2022, median follow-up was 13·0 months (IQR 11·0-16·9), with three participants remaining on treatment. Ten patients had a partial response and 17 had stable disease; the overall response rate was 29·4% (95% CI 16·7-46·3) and the disease control rate was 79·4% (95% CI 62·9-89·9). Median progression-free survival was 5·1 months (95% CI 3·6-6·7); median overall survival was 10·7 (95%CI 7·9-not reached). The most common treatment-related grade 3 or 4 adverse events were neutropenia (ten [29%] participants with grade 3 and nine [26%] with grade 4), grade 3 anaemia (five [15%] participants), and grade 3 peripheral sensory neuropathy (four [12%] participants). There were no treatment-related cardiac toxic effects or deaths. The overall health assessment (EuroQoL-VAS) score did not change significantly throughout the treatment. Sensory and motor neuropathy symptoms as assessed by the European Organization for Research and Treatment of Cancer Quality of Life Questionnaire-Chemotherapy-Induced Peripheral Neuropathy twenty-item scale questionnaire did not change significantly over time. For HER2-positive biliary tract cancer, second-line or third-line trastuzumab biosimilar plus FOLFOX exhibited promising activity with acceptable toxicity, warranting further investigation. Boryung Pharmaceutical, Celltrion, National Research Foundation of Korea, National R&D Program for Cancer Control through the National Cancer Center, Yonsei University College of Medicine.