The formation of biofilm involves several stages. Initially, planktonic (free-floating) microorganisms adhere to a surface. This is followed by the production of EPS, which helps cells to stick more firmly and to each other. As the biofilm matures, it develops a complex architecture with microenvironments that support diverse microbial communities. Eventually, some cells may disperse to colonize new areas.