Obesity is a global health challenge that has received increasing attention in contemporary research. The gut microbiota has been implicated in the development of obesity, primarily through its involvement in regulating various host metabolic processes. Recent research suggests that epigenetic modifications may serve as crucial pathways through which the gut microbiota and its metabolites contribute to the pathogenesis of obesity and other metabolic disorders. Hence, understanding the interplay between gut microbiota and epigenetic mechanisms is crucial for elucidating the impact of obesity on the host. This review primarily focuses on the understanding of the relationship between the gut microbiota and its metabolites with epigenetic mechanisms in several obesity-related pathogenic mechanisms, including energy dysregulation, metabolic inflammation, and maternal inheritance. These findings could serve as novel therapeutic targets for probiotics, prebiotics, and fecal microbiota transplantation tools in treating metabolic disruptions. It may also aid in developing therapeutic strategies that modulate the gut microbiota, thereby regulating the metabolic characteristics of obesity.