Trimethylamine N-oxide (TMAO) is produced when trimethylamine, a waste product of gut microbes, is converted via hepatic flavin monooxygenases. As TMAO is a potential causative factor in various cardiovascular diseases (CVDs) considerable research interest has arisen on its use as a biomarker. Higher TMAO levels are associated with future risk of both incident CVD in the general population and established CVD, including stroke. The addition of TMAO into models with traditional risk factors significantly improved the prediction of future CVD risk. TMAO promotes atherosclerosis and is associated with platelet hyperreactivity and inflammation, which are in turn associated with the development of stroke and its secondary consequences. Additionally, TMAO may play a key mediator role in the relationship between the diet, gut microbiota, and CVD development. Compelling evidence suggesting that TMAO is both a risk factor and prognostic marker of stroke and CVD. Potential therapeutic strategy of diet and drugs in reducing TMAO levels have emerged. Thus, TMAO is a novel biomarker and target in stroke and CVD prevention.