Biofilm-associated infections (BAIs) continue to pose a major challenge in the medical field. Nanomedicine, in particular, promises significant advances in combating BAIs through the introduction of a variety of nanomaterials and nano-antimicrobial strategies. However, studies to date have primarily focused on the removal of the bacterial biofilm and neglect the subsequent post-biofilm therapeutic measures for BAIs, rendering pure anti-biofilm strategies insufficient for the holistic recovery of affected patients. Herein, we construct an emerging dual-functional composite nanosheet (SiHx@Ga) that responds to pHs fluctuation in the biofilm microenvironment to enable a sequential therapy of BAIs. In the acidic environment of biofilm, SiHx@Ga employs the self-sensitized photothermal Trojan horse strategy to effectively impair the reactive oxygen species (ROS) defense system while triggering oxidative stress and lipid peroxidation of bacteria, engendering potent antibacterial and anti-biofilm effects. Surprisingly, in the post-treatment phase, SiHx@Ga adsorbs free pathogenic nucleic acids released after biofilm destruction, generates hydrogen with ROS-scavenging and promotes macrophage polarization to the M2 type, effectively mitigating damaging inflammatory burst and promoting tissue healing. This well-orchestrated strategy provides a sequential therapy of BAIs by utilizing microenvironmental variations, offering a conceptual paradigm shift in the field of nanomedicine anti-infectives.