This study evaluated dietary fiber (DF) level and the ratio of soluble fiber (SF): insoluble fiber (ISF) impact on sows’ reproductive performance under heat stress. Forty sows at day 90 of gestation were assigned to four treatments. HH diet had, 20% DF, 1:4, SF:ISF ratio; HL, 20% DF, 1:6, SF:ISF ratio; LH, 14% DF, 1:4, SF:ISF, LL, 14% DF, 1:6, SF:ISF. Results showed that; lactation back-fat loss was lower (P < 0.05) in HH . Feed intake was higher (P < 0.05) in HH and HL. Farrowing duration shorter (P < 0.05) in HH. Constipation index was higher (P < 0.05) in HH and LH. Weaning piglets’ body weight was greater (P < 0.05) in HH than LH and LL. Hair cortisol was lower (P < 0.05) in HH than HL, and LL. Acetate, propionate, isovalerate, and butyrate was higher (P < 0.05) in HH and LH. Plasma zonulin, fecal lipocalin-2 were lower (P < 0.05) in HH, and HL. Superoxide dismutase tended to be higher (P = 0.056) and malondialdehyde tended to be lower (P = 0.069) in HH and HL. We opined that higher levels of dietary fiber and soluble fiber could ameliorate heat stress in gestating sows.