Recently, an association between dysbiosis of the gut microbiota (GMB) and the development of several diseases, such as Alzheimer's disease (AD), has been proposed. Dysbiosis involves changes in microbial diversity influenced by environmental factors, like diet or lifestyle. In this study, we investigated the role of GMB parameters in Spanish AD patients, assessing the impact of adherence to the Mediterranean lifestyle (ML), as well as to characterize these parameters in relation to neuropsychological, neuropsychiatric, emotional, and functionality parameters. A case-control study was conducted to investigate the association between the composition of the GMB and cognitive, emotional, neuropsychiatric, and functionality status in Spanish AD patients, along with a shotgun metagenomics approach. Richness and alpha-diversity were significantly lower in the AD group compared to the controls. PERMANOVA and ANOSIM tests of Bray-Curtis dissimilarity, Aitchison distance, and Jaccard similarity did not showed significant differences in beta-diversity between the two groups. Moreover, associations between various phyla of the AD group and orientation performance, food consumption, and activities of daily living were identified. Dysbiosis observed in Spanish AD patients is characterized by reductions in richness and alpha-diversity, alongside alterations in GMB composition, which may be linked to adherence to the ML and cognitive and functionality symptoms.