Exposure to environmental chemicals during pregnancy and lactation is a contributing factor in gut microbiota dysbiosis and linked to programming of hypertension. 2,3,7,8-tetrachlorodibenzo-p-dioxin (TCDD), the most toxic dioxin, induces toxic effects by mediating aryl hydrocarbon receptor (AHR). Resveratrol, a potent antioxidant with prebiotic properties, can possess high affinity for AHR and protect against TCDD-activated AHR attack. We examined whether perinatal resveratrol therapy prevents offspring hypertension programmed by maternal TCDD exposure and whether its beneficial effects are related to reshaping gut microbiota and antagonizing AHR-mediated T helper 17 (TH17) cells responses using a maternal TCDD exposure rat model. Pregnant Sprague-Dawley rats were given a weekly oral dose of TCDD 200 ng/kg for four doses (T), 50 mg/L of resveratrol in drinking water (CR), TCDD + resveratrol (TR), or vehicle (C) in pregnancy and lactation periods. Male offspring (n = 7–8/group) were sacrificed at the age of 12 weeks. Perinatal TCDD exposure caused elevated blood pressure in adult male offspring, which resveratrol supplementation prevented. Additionally, the TCDD-induced programming of hypertension is coincided with the activation of AHR signaling, TH17-induced renal inflammation, and alterations of gut microbiota compositions. Conversely, TCDD-mediated induction of AHR signaling and TH17 responses were restored by maternal resveratrol supplementation. Furthermore, maternal resveratrol supplementation prevented the programming of hypertension and was related to increased genera Bacteroides, ASF356, and Lachnoclostridium. Taken together, these results suggest that the interplay between gut microbiota, AHR-mediated TH17 responses, and renal inflammation in the gut and kidneys may play an important role in the action of resveratrol against TCDD-induced programming of hypertension.