BackgroundResidents and staff in long-term care facilities have been prioritised for vaccination against SARS-CoV-2, but data on potential waning of vaccine effectiveness and the effect of booster doses in this vulnerable population are scarce. We aimed to evaluate effectiveness of one, two, and three vaccine doses against infection and severe clinical outcomes in staff and residents of long-term care facilities in England over the first year following vaccine roll-out.MethodsThe VIVALDI study is a prospective cohort study done in 331 long-term care facilities in England. Residents aged 65 years or older and staff aged 18 years or older were eligible for participation. Participants had routine PCR testing throughout the study period between Dec 8, 2020, and Dec 11, 2021. We retrieved all PCR results and cycle threshold values for PCR-positive samples from routine testing in long-term care facilities, and positive PCR results from clinical testing in hospitals through the UK's COVID-19 Datastore. PCR results were linked to participants using pseudo-identifiers based on individuals' unique UK National Health Service (NHS) numbers, which were also used to retrieve vaccination records from the National Immunisation Management Service, hospitalisation records from NHS England, and deaths data from the Office for National Statistics through the COVID-19 Datastore. In a Cox proportional hazards regression, we estimated vaccine effectiveness against SARS-CoV-2 infection, COVID-19-related hospitalisation, and COVID-19-related death after one, two, and three vaccine doses, separately by previous SARS-CoV-2 exposure. This study is registered with the ISRCTN Registry, ISRCTN 14447421.Findings80 186 residents and staff of long-term care facilities had records available for the study period, of whom 15 518 eligible residents and 19 515 eligible staff were included in the analysis. For residents without evidence of previous SARS-CoV-2 exposure, vaccine effectiveness decreased from 61·7% (95% CI 35·1 to 77·4) to 22·0% (–14·9 to 47·0) against infection; from 89·0% (70·6 to 95·9) to 56·3% (30·1 to 72·6) against hospitalisation; and from 96·4% (84·3 to 99·2) to 64·4% (36·1 to 80·1) against death, when comparing 14–83 days after dose two and 84 days or more after dose two. For staff without evidence of previous exposure, vaccine effectiveness against infection decreased slightly from 57·9% (43·1 to 68·9) at 14–83 days after dose two to 42·1% (29·9 to 52·2) at 84 days or more after dose two. There were no hospitalisations or deaths among unexposed staff at 14–83 days, but seven hospitalisations (vaccine effectiveness 91·0% [95% CI 74·3 to 96·8]) and one death were observed at 84 days or more after dose two. High vaccine effectiveness was restored following a third vaccine dose, with vaccine effectiveness in unexposed residents of 72·7% (55·8 to 83·1) against infection, 90·1% (80·6 to 95·0) against hospitalisation, and 97·5% (88·1 to 99·5) against death; and vaccine effectiveness in unexposed staff of 78·2% (70·0 to 84·1) against infection and 95·8% (49·9 to 99·6) against hospitalisation. There were no COVID-19-related deaths among unexposed staff after the third vaccine dose.InterpretationOur findings showed substantial waning of SARS-CoV-2 vaccine effectiveness against all outcomes in residents of long-term care facilities from 12 weeks after a primary course of ChAdOx1-S or mRNA vaccines. Boosters restored protection, and maximised immunity across all outcomes. These findings show the importance of boosting and the need for ongoing surveillance in this vulnerable cohort.FundingUK Government Department of Health and Social Care.