A biofilm is made up of microorganisms and their secretions which cause them to stick to each other and to a surface. Biofilms form when free-floating microorganisms attach to a surface by producing extracellular polymeric substances. Successive layers of microorganism and extracellular polymeric substances form 3D structures.