High blood pressure (BP) is associated with gut microbiota dysbiosis. The aim of this study was to investigate whether changes in gut microbiota induced by exchanging the gut microbiota between spontaneously hypertensive rats (SHR) and normotensive Wistar-Kyoto (WKY) alter the gut-immune system interaction inducing changes in vascular function and BP. Twenty-week-old recipient WKY and SHR were orally gavaged with donor faecal contents from WKY or SHR. In additional experiments, we used a design to determine whether blockade of B7-dependent costimulation with CTLA4-Ig or blockade of IL-17 with IL-17-neutralizing antibody could prevent hypertension caused by faecal microbiota transplantation (FMT) from SHR to WKY. Correlation analyses identified the bacterial abundance of Turicibacter and S24-7_g that, respectively, positively and negatively correlated with systolic BP. FMT from WKY rats to SHR rats reduced basal systolic BP, restored the imbalance between Th17/Treg in mesenteric lymph nodes (MLNs) and aorta, and improved endothelial dysfunction and vascular oxidative status found in SHR transplanted with SHR faeces. FMT from SHR to WKY increased CD80 and CD86 mRNA levels and T cells activation in MLNs, circulating T cells, aortic T cell infiltration, impaired endothelial function and increased basal SBP. These effects were abolished by blockade of B7-dependent costimulation with CTLA4-Ig. IL-17a neutralizing antibody reduced SBP and improved endothelial dysfunction induced by FMT from SHR to WKY. Gut microbiota is an important factor involved in the control of BP, as a consequence of its effect in T-cell activation in gut immune system and vascular T-cells accumulation.