The formation of bacterial biofilms is due to the bacteria adhering to the contact surface, secreting exopolysaccharide (EPS) and proteins, which make a large number of bacteria aggregate to form communities. In our experiments, we find that biofilms can heal after being destroyed like cut. To understand how biofilms self-heal, we use a diffusion-reaction continuum model to simulate the biofilm self-healing process, by using the extended finite element and level set method through MATLAB.