This study introduces the Swedish Dietary Guideline Index (SweDGI) to evaluate adherence to dietary guidelines and their impact on gut microbiota a