Porcine epidemic diarrhea virus (PEDV) has developed as a global problem for the pig business, resulting in significant financial losses. Black soldier fly extract (BFE) has been proven to improve intestinal growth in pigs after weaning. Consequently, the goal of the present investigation was to explore the effects of BFE supplementation on intestinal function in PEDV-infected piglets. Eighteen piglets were randomly allocated to three groups: control, PEDV, and BFE + PEDV. The piglets in the BFE + PEDV group received 500 mg/kg BW of BFE orally for seven days from day 4 to 10 of the study. On day 9 of the study, six pigs from each group received either clean saline or PEDV solution at a dosage of 106 TCID50 (50% tissue culture infectious dose) per pig. On day 11, samples of blood and intestine were taken for additional investigation. The results indicated a significant decrease in the average daily gain (ADG) of piglets infected with PEDV (p p p p < 0.05). Overall, the preliminary results suggest that dietary BFE could improve intestinal function in piglets after PEDV infection. Currently, the findings put a spotlight on the role of BFE in the prevention and treatment of PED in piglets.