The COVID-19 pandemic has caused a huge loss of human life globally. However, few studies investigated the link between exposure to green space and risk of COVID-19 mortality rate, while also distinguishing the effects of various types of green space, considering the spatial distribution of human population and green space, and identifying the optimal buffer distances of nearby green space. It is critical and pressing to fill these significant knowledge gaps to protect and promote billions of people's health and life across the world.This study adopted a negative binomial generalized linear mixed-effects model to examine the association between the ratios of various types of green space, population-weighted exposure to those various types of green space, and COVID-19 mortality rates across 3025 counties in the USA, adjusted for sociodemographic, pre-existing chronic disease, policy and regulation, behavioral, and environmental factors.The findings show that greater exposure to forest was associated with lower COVID-19 mortality rates, while developed open space had mixed associations with COVID-19 mortality rates. Forest outside park had the largest effect size across all buffer distances, followed by forest inside park. The optimal exposure buffer distance was 1 km for forest outside park, with per one-unit of increase in exposure associated with a 9.9 % decrease in COVID-19 mortality rates (95 % confidence interval (CI): 6.9 %–12.8 %). The optimal exposure buffer distance of forest inside park was 400 m, with per one-unit of increase in exposure associated with a 4.7 % decrease in mortality rates (95 % CI: 2.4 %–6.9 %).The results suggest that greater exposure to green spaces, especially to nearby forests, may mitigate the risk of COVID-19 mortality. Although findings of an ecological study cannot be directly used to guide medical interventions, this study may pave a critical new way for future research and practice across multiple disciplines.