In this study, a comparative metabolomics approach combining gas chromatography–mass spectrometry (GC-MS) and liquid chromatography–mass spectrometry (LC-MS) was applied first between planktonic cells and biofilms and then between pure cultures and biofilms of Desulfovibrio vulgaris. The results revealed that the overall metabolic level of the biofilm cells was down-regulated, especially for metabolites related to the central carbon metabolism, compared to the planktonic cells and the pure culture of D. vulgaris. In addition, pathway enrichment analysis of the 58 metabolites identified by GC-MS showed that fatty acid biosynthesis in the biofilm cells was up-regulated, suggesting that fatty acids may be important for the formation, maintenance and function of D. vulgaris biofilm. This study offers a valuable perspective on the metabolic dynamics of the D. vulgaris biofilm.