The activity of two phenolic acids, gallic acid (GA) and ferulic acid (FA) at 1000 μg ml−1, was evaluated on the prevention and control of biofilms formed by Escherichia coli, Pseudomonas aeruginosa, Staphylococcus aureus and Listeria monocytogenes. In addition, the effect of the two phenolic acids was tested on planktonic cell susceptibility, bacterial motility and adhesion. Biofilm prevention and control were tested using a microtiter plate assay and the effect of the phenolic acids was assessed on biofilm mass (crystal violet staining) and on the quantification of metabolic activity (alamar blue assay). The minimum bactericidal concentration for P. aeruginosa was 500 μg ml−1 (for both phenolic acids), whilst for E. coli it was 2500 μg ml−1 (FA) and 5000 μg ml−1 (GA), for L. monocytogenes it was >5000 μg ml−1 (for both phenolic acids), and for S. aureus it was 5000 μg ml−1 (FA) and >5000 μg ml−1 (GA). GA caused total inhibition of swimming (L. monocytogenes) and swarming (L. monocytogenes and E. coli) motilities. FA caused total inhibition of swimming (L. monocytogenes) and swarming (L. monocytogenes and E. coli) motilities. Colony spreading of S. aureus was completely inhibited by FA. The interference of GA and FA with bacterial adhesion was evaluated by the determination of the free energy of adhesion. Adhesion was less favorable when the bacteria were exposed to GA (P. aeruginosa, S. aureus and L. monocytogenes) and FA (P. aeruginosa and S. aureus). Both phenolics had preventive action on biofilm formation and showed a higher potential to reduce the mass of biofilms formed by the Gram-negative bacteria. GA and FA promoted reductions in biofilm activity >70% for all the biofilms tested. The two phenolic acids demonstrated the potential to inhibit bacterial motility and to prevent and control biofilms of four important human pathogenic bacteria. This study also emphasizes the potential of phytochemicals as an emergent source of biofilm control products.