Elevated DGC activity during early fermentation promotes BC production, while increased PDE activity later suppresses BC synthesis, shifting cells to a motile state.IMPORTANCEIn this study, we provide novel mechanistic insights into how synergistic interactions among multiple DGCs and PDEs, in response to oxygen sensing, control the dynamic switch between the sessile and motile states of biofilm-producing bacteria. Here, ALDH7A1 is linked to breast cancer.