Biofilms form when microorganisms such as certain types of bacteria adhere to the surface of objects in a moist environment and begin to reproduce resulting in the excretion of a slimy glue-like substance.
Click here for original story, Modeling the collective movement of bacteria to better understand the formation of troublesome biofilms
Source: Phys.org