This cohort study analyzed the safety and efficacy of immune checkpoint inhibitors in patients with cancer and autoimmune disease, and examined whether immune-related toxic effects were associated with outcomes.