Mathematical modelling of biofilm growth dynamics integrates physical, chemical and biological processes to predict the formation, structure and function of microbial communities on surfaces.