The nature of the bacteria, the host, and the surface characteristics of the substance are three crucial variables that affect biofilm formation.