Infection of piglets with Glaesserella parasuis (G. parasuis) induces host immunosuppression. However, the mechanism underlying the immunosuppression of piglets remains unclear. Activation of the PD-1/PD-L1 axis has been shown to trigger host immunosuppression. Baicalin possesses anti-inflammatory and immunomodulatory functions. However, whether baicalin inhibits PD-1/PD-L1 activation and thus alleviates host immunosuppression has not been investigated. In this study, the effect of baicalin on the attenuation of piglet immunosuppression induced by G. parasuis was evaluated. Seventy piglets were randomly divided into the control group, infection group, levamisole group, BMS-1 group, 25 mg/kg baicalin group, 50 mg/kg baicalin group and 100 mg/kg baicalin group. Following pretreatment with levamisole, BMS-1 or baicalin, the piglets were challenged with 1 × 108 CFU of G. parasuis. Our results showed that baicalin, levamisole and BMS-1 modified routine blood indicators and biochemical parameters; downregulated IL-1β, IL-10, IL-18, TNF-α and IFN-γ mRNA expression; and upregulated IL-2 and IL-8 mRNA expression in blood. Baicalin, levamisole and BMS-1 increased the proportions of CD3+ T cells, CD3+CD4+ T cells, CD3+CD8+ T cells and CD3–CD21+ B cells in the splenocyte population, increased the proportions of CD3+ T cells, CD3+CD4+ T cells and CD3+CD8+ T cells in the blood, and inhibited PD-1/PD-L1 and TIM-3 activation. Baicalin, levamisole and BMS-1 reduced p-PI3K, p-Akt, and p-mTOR expression, the p-MEK1/2/MEK1/2 and p-ERK1/2/ERK1/2 ratios and increased RAS expression. Baicalin, levamisole and BMS-1 provided substantial protection against G. parasuis challenge and relieved tissue histopathological damage. Our findings might provide new strategies for controlling G. parasuis infection and other immunosuppressive diseases.