Abstract Biofilms are complex bacterial communities characterized by a high persister prevalence, which contributes to chronic and relapsing infections. Historically, biofilm persister formation has been linked to constraints imposed by their dense structures. However, we observed an elevated persister frequency accompanying the stage of cell adhesion, marking the onset of biofilm development. Subsequent mechanistic studies uncovered a distinctive type of toxin-antitoxin (TA) module triggered by cell adhesion, which is responsible for this elevation. In this module, the toxin HipH acts as a genotoxic deoxyribonuclease, inducing DNA double strand breaks and genome instability. While the second messenger c-di-GMP functions as the antitoxin, exerting control over HipH expression and activity. The dynamic interplay between c-di-GMP and HipH levels emerges as a crucial determinant governing genome stability and persister generation within biofilms. These findings unveil a unique TA system, where small molecules act as the antitoxin, outlining a biofilm-specific molecular mechanism influencing genome stability and antibiotic persistence, with potential implications for treating biofilm infections.