To clarify the relationship between microorganisms and physicochemical indicators of Xuanwei ham. Six ham samples for the first, second and third year were selected, respectively. The changes of physicochemical properties, the free fatty acids and microbial communities of Xuanwei ham were investigated by GC-MS and high-throughput sequencing technology. Results showed that scores of colour, overall acceptability, texture, taste and aroma were the highest in the third year sample. With increasing ripening time, moisture content, water activity (Aw), lightness (L*), springiness, and resilience decreased continuously, and yellowness (b*) was the highest in the second year sample. 31 free fatty acids were detected, and unsaturated fatty acids such as palmitoleic acid, oleic acid, and linoleic acid were the major fatty acids. The content of palmitoleic acid, oleic acid and eicosenoic acid increased significantly during processing. At the phylum level, the dominant bacteria were Proteobacteria and Firmicutes, and fungi were Ascomycota. At the genus level, the dominant bacteria were Staphylococcus and Psychrobacter, and fungi were Aspergillus. Correlation analysis showed that water content and Aw were closely related to microorganisms, and most unsaturated fatty acids were significantly correlated with microorganisms. These findings showed that microorganisms played an important role in the quality of Xuanwei ham, and provided a scientific basis for the quality control of Xuanwei ham.