In developing countries, Shigella flexneri is the most common enteric pathogen causing bacillary dysentery. Biofilm formation by S. flexneri can cause the emergence of antibiotic-resistant strains, which poses serious threats to food safety and human health. In this study, the effects of Lactobacillus plantarum 12 exopolysaccharides (L-EPSs) and S. flexneri exopolysaccharides (S-EPSs) on S. flexneri CMCC51574 biofilm formation were investigated. The results showed that L-EPS could decrease polysaccharide production in the extracellular polymeric matrix of S. flexneri and inhibit biofilm formation by S. flexneri L-EPS could decrease the minimum biofilm elimination concentration (MBEC) of antibiotics against S. flexneri biofilm and inhibit S. flexneri adhesion to and invasion into HT-29 cell monolayers, which might be ascribed to S. flexneri biofilm disturbance by L-EPS. In contrast, S-EPS exhibited the opposite effects compared to L-EPS. The monosaccharide composition analysis showed that L-EPS was composed of mannose, glucuronic acid, galactosamine, glucose, galactose, and xylose, with the molar ratio of 32.26:0.99:1.79:5.63:0.05:4.07, while S-EPS was composed of mannose, glucuronic acid, galactosamine, glucose, and galactose, with the molar ratio of 25.43:2.28:7.13:5.35. L-EPS was separated into the neutral polysaccharide L-EPS 1-1 and the acidic polysaccharide L-EPS 2-1 by ion-exchange chromatography and gel chromatography. L-EPS 2-1 exerted higher antibiofilm activity than L-EPS 1-1. The antibiofilm activity of L-EPS might be associated with its structure.IMPORTANCES. flexneri is a widespread foodborne pathogen causing food contamination and responsible for food poisoning outbreaks related to various foods in developing countries. Not only has biofilm formation by S. flexneri been difficult to eliminate, but it has also increased the drug resistance of the strain. In the present study, it was demonstrated that L-EPSs secreted by Lactobacillus plantrum 12 could inhibit S. flexneri biofilm formation on, adhesion to, and invasion into HT-29 cells. Also, L-EPSs could decrease the minimum biofilm elimination concentration (MBEC) of the antibiotics used against S. flexneri biofilm. Therefore, L-EPSs were shown to be bioactive macromolecules with the potential ability to act against S. flexneri infections.