The gut microbiota is a complex community that interacts with the dynamic functions of the host,and proper gut microbiota structure and metabolite function are essential for maintaining homeostasis.In recent years,a large number of studies have demonstrated that the gut microbiota and its derived metabolites influence the development of cardiovascu-lar diseases,including cardiac arrhythmias,of which atrial fibrillation is one of the most common.Trimethylamine oxide(TMAO)is one of the most studied gut microbiota-derived metabolites,and TMAO has been found to be strongly associ-ated with the development of atrial fibrillation.Many epidemiological studies have shown that TMAO plays a role in the onset,development and prognosis of atrial fibrillation(AF).TMAO increases the susceptibility to AF by contributing to the development of multiple cardiovascular risk factors.In addition,TMAO promotes atrial structural remodeling by stim-ulating inflammatory responses,causing cardiac fibrosis and atrial pyroptosis.Elevated levels of TMAO also increase atri-al electrophysiological instability,triggering ectopic activity that leads to electrophysiological remodeling,and directly or indirectly activate the autonomic nervous system to cause neural remodeling that induces atrial fibrillation.In addition,elevated levels of TMAO induce platelet hyper-reactivity,which promotes arterial thrombosis,increases the incidence of thromboembolism in AF,and is also significantly associated with AF recurrence after ablation.TMAO has been shown to have some potential values in the prevention and treatment of AF.The composition of the gut microbiota can be modulated through dietary habits by reducing the intake of trimethylamine-producing dietary precursors and thereby reducing circulat-ing levels of TMAO,by increasing the excretion of TMAO from the kidneys through certain drugs,and by directly taking prebiotics,probiotics,or through fecal flora transplantation,which can in turn alter the levels of gut microbiota-derived metabolites.In this paper,we review the above aspects based on the findings of the related literature,with the aim of providing a theoretical basis for future related studies.