More adherence to unhealthy or traditional dietary patterns was associated with higher CRP and ESR levels and a higher risk of severe COVID-19 and hospitalization duration. Here, ESR1 is linked to COVID-19.