Poultry necrotic enteritis is an important enteric disease which might be controlled by antibiotics. However, with the excessive use of antibiotics, the phenomenon of drug resistance of Clostridium perfringens is becoming increasingly prominent. Anemoside B4 exhibits important anti-inflammatory, antioxidant and immunomodulatory effects. This study was performed to estimate the effect of Anemoside B4 on chicken necrotic enteritis induced by C. perfringens in vivo and in vitro. In the in vivo experiment we investigated the efficacy of Anemoside B4 on the growth curve, biofilm formation, haemolytic activity, virulence-related gene expression and NF-κB and PI3K/AKT/mTOR activation in Caco-2 cells induced by C. perfringens. The results showed that 12.5–50 μg/mL Anemoside B4 had no antibacterial activity but could inhibit biofilm formation, attenuate haemolytic activity and virulence-related gene expression of C. perfringens and weaken NF-κB and PI3K/Akt/mTOR activation triggered by C. perfringens in Caco-2 cells. In the in vivo experiment, 60 17-day-old healthy White Leghorns were randomly divided into six groups. The growing laying hens of the control group were fed a basic diet, and those of the five challenged groups were fed a basic diet (infection group), added 0.43 g/kg Anemoside B4 (0.43 g/kg Ane group), 0.86 g/kg Anemoside B4 (0.86 g/kg Ane group), 1.72 g/kg Anemoside B4 (1.72 g/kg Ane group) and 40 mg/kg lincomycin (lincomycin group), respectively. All challenged laying hens were infected with 1 × 109 CFU C. perfringens from day 17–20. Blood and intestinal samples were obtained, and the data demonstrated that Anemoside B4 improved the blood biochemical parameters, attenuated jejunum tissue injury, increased the spleen, thymus, bursa of fabricius index, and decreased lesion scores of the jejunum and the ileum. In the jejunum, Anemoside B4 and lincomycin downregulated the expression of IL-1β, IL-6, IL-10, TNF-α and IFN-γ at mRNA levels. Moreover, Anemoside B4 significantly enhanced both mRNA and protein levels of tight junctions ZO-1, Claudin-1 and MUC-2 in the jejunum. Anemoside B4 weakened p-P65, p-PI3K, p-Akt and p-mTOR protein expression in the jejunum infected by C. perfringens. Diets supplemented with Anemoside B4 alleviated C. perfringens-induced necrotic enteritis in laying hens by inhibiting NF-κB and PI3K/Akt/mTOR signalling pathways and improving intestinal barrier functions.