CAPTURE (NCT03226886) is a prospective cohort study of COVID-19 immunity in patients with cancer. Here we evaluated 585 patients following administration of two doses of BNT162b2 or AZD1222 vaccines, administered 12 weeks apart. Seroconversion rates after two doses were 85% and 59% in patients with solid and hematological malignancies, respectively. A lower proportion of patients had detectable neutralizing antibody titers (NAbT) against SARS-CoV-2 variants of concern (VOCs) vs wild-type (WT). Patients with hematological malignancies were more likely to have undetectable NAbT and had lower median NAbT vs solid cancers against both WT and VOCs. In comparison with individuals without cancer, patients with haematological, but not solid, malignancies had reduced NAb responses. Seroconversion showed poor concordance with NAbT against VOCs. Prior SARS-CoV-2 infection boosted NAb response including against VOCs, and anti-CD20 treatment was associated with undetectable NAbT. Vaccine-induced T-cell responses were detected in 80% of patients, and were comparable between vaccines or cancer types. Our results have implications for the management of cancer patients during the ongoing COVID-19 pandemic.