PurposeMedications regulating immune homeostasis and gut microbiota could affect the efficacy of immune checkpoint inhibitors (ICIs). This study aimed to investigate the impact of concurrent medications on the clinical outcomes of patients with cancer receiving ICI therapy in South Korea.MethodsWe identified patients newly treated with ICI for non-small cell lung cancer (NSCLC), urothelial carcinoma (UC), and malignant melanoma (MM) between August 2017 and June 2020 from a nationwide database in Korea. The effect of concurrent antibiotics (ATBs), corticosteroids (CSs), proton-pump inhibitors (PPIs), and opioids prescribed within 30 days before ICI initiation on the treatment duration and survival was assessed.ResultsIn all, 8870 patients were included in the ICI cohort (NSCLC, 7,128; UC, 960; MM, 782). The patients were prescribed ATBs (33.8%), CSs (47.8%), PPIs (28.5%), and opioids (53.1%) at the baseline. The median overall survival durations were 11.1, 12.2, and 22.1 months in NSCLC, UC, and MM subgroups, respectively, since starting the ICI mostly as second-line (NSCLC and UC) and first-line (MM) therapy. Early progression was observed in 34.2% of the patients. Opioids and CS were strongly associated with poor survival across all cancer types. A high number of concurrent medications was associated with early progression and short survival. Opioid and CS use was associated with poor prognosis in all patients treated with ICIs. However, ATBs and PPIs had a cancer-specific effect on survival.ConclusionA high number of concurrent medications was associated with poor clinical outcomes.