Otitis media (OM), a condition stemming from the proliferation of various bacteria within the tympanic cavity (TC), is commonly addressed through the administration of ofloxacin (OFL), a fluoroquinolone antibiotic. Nevertheless, the escalating issue of antibiotic resistance and the challenge of drug leakage underscore the exploration of an alternative, more effective treatment modality in clinical practice. Here, we introduce a simple and easily implementable fluid-regulated strategy aimed at delivering immunomodulatory hydrogels into the TC, ensuring conformal contact with the irregular anatomical surfaces of the middle ear cavity to more effectively eliminate bacteria and treat OM. This innovative strategy exhibits expedited therapeutic process of antibiotic-resistant, acute and chronic OM rats, and significant reductions in the severity of tympanic membrane (TM) inflammation, residual bacteria within the TC (0.12 *105 CFU), and the thickness of TM/TC mucosa (17.63/32.43 μm), as compared to conventional OFL treatment (3.6, 0.76 *105 CFU, 48.70/151.26 μm). The broad-spectrum antibacterial and antibiofilm properties of this strategy against a spectrum of OM pathogens are demonstrated. The strategy is validated to bolster the host’s innate immune response through the stimulation of antibacterial protein synthesis, macrophage proliferation and activation, thereby accelerating bacterial eradication and inflammation resolution within the TC. This facile, cost-effective and in vivo degradable technology exhibits promising prospects for future clinical implementation.