ImportanceRituximab and other B-cell–depleting therapies blunt humoral responses to SARS-CoV-2 vaccines, particularly when the vaccine is administered within 6 months of an infusion. Whether this translates into an increased risk of hospitalization or death from COVID-19 is unclear.ObjectivesTo examine whether rituximab treatment is associated with an increased risk of hospitalization for COVID-19 among SARS-CoV-2–vaccinated persons with multiple sclerosis (MS) and whether delaying vaccination more than 6 months after rituximab treatment is associated with decreased risk.Design, Setting, and ParticipantsThis retrospective cohort study used Kaiser Permanente Southern California’s electronic health record to identify individuals from January 1, 2020, to February 15, 2022, who had MS and who had been vaccinated against SARS-CoV-2.ExposuresRituximab treatment compared with disease-modifying therapies (DMTs) that do not interfere with vaccine efficacy or being untreated (no or other DMT group). Among rituximab-treated patients, the exposure was receiving at least 1 vaccine dose more than 6 months after their last infusion compared with receiving all vaccine doses 6 months or less since their last infusion.Main Outcomes and MeasuresThe main outcome was hospitalization due to COVID-19 infection. The odds of infection resulting in hospitalization following SARS-CoV-2 vaccination were adjusted for race and ethnicity, advanced MS-related disability; vaccine type; booster dose; and, among rituximab-treated only analyses, cumulative rituximab dose and dose at last infusion. Exposures, outcomes, and covariates were collected from the electronic health record.ResultsAmong 3974 SARS-CoV-2–vaccinated people with MS (mean [SD] age, 55.3 [15] years; 2982 [75.0%] female; 103 [2.6%] Asian or Pacific Islander; 634 [16.0%] Black; 953 [24.0%] Hispanic; 2269 [57.1%] White; and 15 [0.3%] other race or ethnicity), rituximab-treated patients (n = 1516) were more likely to be hospitalized (n = 27) but not die (n = 0) compared with the 2458 individuals with MS receiving no or other DMTs (n = 7 and n = 0, respectively; adjusted odds ratio [aOR] for hospitalization, 7.33; 95% CI, 3.05-17.63). Receiving messenger RNA (mRNA) SARS-CoV-2 vaccine (aOR, 0.36; 95% CI, 0.15-0.90; P = .03) and receiving a booster vaccination (aOR, 0.31; 95% CI, 0.15-0.64; P = .002) were independently associated with a decreased risk of hospitalization for COVID-19. Among vaccinated rituximab-treated individuals with MS, receiving any vaccination dose more than 6 months after the last rituximab infusion was associated with a reduced risk of COVID-19 hospitalization (aOR, 0.22; 95% CI, 0.10-0.49).Conclusions and RelevanceThis cohort study’s findings suggest that rituximab-treated people with MS should be strongly encouraged to receive mRNA SARS-CoV-2 vaccines and boosters more than 6 months after their last rituximab infusion whenever possible. The low absolute risk of hospitalization for COVID-19 among mRNA-vaccinated individuals with MS should not preclude use of rituximab, which has marked efficacy, cost, and convenience advantages over other DMTs.