A method for inhibiting biofilm formation by bacteria on a surface or disrupting existing biofilm on a surface, including contacting the surface or existing biofilm with 2-(indolin-2-yl)-1H-ind, di(1H-indol-3-yl)methane and 1,1′-biindole, or any combination thereof.