Nutrients are essential for the health and survival of human beings and animals. Also, they play a major role in enhancing reproductive efficiency. The aim of the current study was to investigate the effects of sodium butyrate (SB) on reproductive performance and colostrum composition in gilts. A total of 40 Large White×Landrace replacement gilts (at the age of 160 to 175 days) were fed either a standard diet (control group, n=20) or standard diet top dressed with encapsulated SB at the level of 500 mg/kg (SB group, n=20) from 1 month before mating to 7 days after farrowing. The rate of gilts regular return to estrus after insemination was lower in SB group than the control group. The total number of piglets born (P=0.179) and the litter weight at birth (P=0.063) did not differ between the two treatment groups. However, the mean BW at day 7 tended to be greater in SB group (P=0.051) and average daily gain of piglets was greater (P=0.011) compared with control group. Colostrum samples were collected at parturition and the concentrations of total protein (P=0.197), cholesterol (P=0.161) and lactose (P=0.923) were not influenced by SB supplementation. However, compared with control gilts, colostrum from SB-treated gilts contained lower triglyceride (P=0.050). Moreover, colostrum concentrations of prolactin (P=0.005) and leptin (P=0.006) were significantly lower in SB group. No significant differences were noted for the colostral concentrations of cortisol (P=0.899), thyroxine (P=0.891) or triiodothyronine (P=0.194). The concentration of lipopolysaccharide in colostrum was not influenced by SB supplementation (P=0.972). However, colostrum from SB-treated gilts had significantly lower tumor necrosis factor α (TNFα) (P=0.030) and higher immunoglobulin A (IgA) (P=0.042). Collectively, SB supplementation could reduce the rate of gilts return to estrus, alter the composition of colostrum and enhance the growth rate of piglets. Moreover, SB could alter the immune function of newborn piglets through decreased production of TNFα and increased IgA concentration in colostrum.