Maternal exposure to environmental pollutants affects fetal development, which can result in hypertension in adulthood. Gut microbiota-derived metabolite trimethylamine (TMA), trimethylamine-N-oxide (TMAO), and short chain fatty acids (SCFAs) have been associated with hypertension. We tested a hypothesis that maternal 3,3-Dimethyl-1-butanol (DMB, a TMA inhibitor) therapy prevents 2,3,7,8-tetrachlorodibenzo-p-dioxin (TCDD) exposure-induced hypertension in adult offspring relevant to alterations of gut microbiota-derived metabolites, the mediation of aryl hydrocarbon receptor (AHR) signaling, and the renin-angiotensin system (RAS). Pregnant Sprague-Dawley rats were given weekly oral dose of TCDD 200 ng/kg for four doses (T), 1% DMB in drinking water (D), TCDD + DMB (TD), or vehicle (C) in pregnancy and lactation periods. Male progeny (n = 8/group) were sacrificed at the age of 12 weeks. Perinatal TCDD exposure caused hypertension in adult male offspring coinciding with reduced α-diversity, increased the Firmicutes to Bacteroidetes ratio, less abundant beneficial bacteria, impaired SCFA receptors’ expression, the activation of AHR signaling, and the aberrant activation of the RAS. Treatment with DMB during pregnancy and lactation rescued hypertension induced by perinatal TCDD exposure. This was accompanied by reshaping gut microbiota, mediating TMA-TMAO metabolic pathway, increasing acetic acid and its receptors, and restoring the AHR and RAS pathway. Our data provide new insights into the therapeutic potential of DMB, a microbiome-based metabolite treatment, for the prevention of hypertension of developmental origins.