Background: High-resolution data for how mortality and longevity have changed in England, UK are scarce. We aimed to estimate trends from 2002 to 2019 in life expectancy and probabilities of death at different ages for all 6791 middle-layer super output areas (MSOAs) in England. Methods: We performed a high-resolution spatiotemporal analysis of civil registration data from the UK Small Area Health Statistics Unit research database using de-identified data for all deaths in England from 2002 to 2019, with information on age, sex, and MSOA of residence, and population counts by age, sex, and MSOA. We used a Bayesian hierarchical model to obtain estimates of age-specific death rates by sharing information across age groups, MSOAs, and years. We used life table methods to calculate life expectancy at birth and probabilities of death in different ages by sex and MSOA. Findings: In 2002–06 and 2006–10, all but a few (0–1%) MSOAs had a life expectancy increase for female and male sexes. In 2010–14, female life expectancy decreased in 351 (5·2%) of 6791 MSOAs. By 2014–19, the number of MSOAs with declining life expectancy was 1270 (18·7%) for women and 784 (11·5%) for men. The life expectancy increase from 2002 to 2019 was smaller in MSOAs where life expectancy had been lower in 2002 (mostly northern urban MSOAs), and larger in MSOAs where life expectancy had been higher in 2002 (mostly MSOAs in and around London). As a result of these trends, the gap between the first and 99th percentiles of MSOA life expectancy for women increased from 10·7 years (95% credible interval 10·4–10·9) in 2002 to reach 14·2 years (13·9–14·5) in 2019, and for men increased from 11·5 years (11·3–11·7) in 2002 to 13·6 years (13·4–13·9) in 2019. Interpretation: In the decade before the COVID-19 pandemic, life expectancy declined in increasing numbers of communities in England. To ensure that this trend does not continue or worsen, there is a need for pro-equity economic and social policies, and greater investment in public health and health care throughout the entire country. Funding: Wellcome Trust, Imperial College London, Medical Research Council, Health Data Research UK, and National Institutes of Health Research.