Periodontitis presents significant treatment challenges due to its complexity and potential complications. In response, an in situ forming gel (ISG) loaded with moxifloxacin HCl (Mx) and cellulose acetate butyrate (CAB) was developed for targeted periodontitis therapy. Mx-loaded 10-45% CAB-based ISGs were developed, and their physicochemical properties such as rheology, viscosity, contact angle, gel morphology and gel formation, interface interaction were investigated. Moreover, the formulation performance studies including drug release and kinetics, in vitro degradation, and antimicrobial activities were also evaluated. The Mx-loaded ISGs containing 25-45% CAB demonstrated rapid matrix formation in both macroscopic and microscopic examinations and presented plastic deformation matrix. Tracking with sodium fluorescein and Nile red fluorescence probes indicated delayed solvent movement owing to CAB matrix formation. Adequate CAB content sustained Mx release for one week, following Peppas-Sahlin model and indicating a predominantly Fickian diffusion mechanism. Higher CAB content likely contributed to a denser matrix structure, leading to a slower in vitro degradation rate. Synchrotron radiation X-ray tomographic and SEM imaging provided insights into the CAB matrix structure and porous network formation. These ISG formulations effectively inhibited Staphylococcus aureus, Escherichia coli, Candida albicans, and Porphyromonas gingivalis. The Mx-loaded 40% CAB-based ISG shows promise as a dosage form for treating periodontitis. Further clinical trials are necessary to ensure the safety of this new ISG formulation, despite existing safety data for other medicinal uses of CAB. HIGHLIGHTS: Moxifloxacin HCl-loaded 10-45% cellulose acetate butyrate (CAB)-based in situ forming gels (ISG) were developed. They were evaluated for physicochemical properties, drug release, in vitro degradation, and antimicrobial activities. ISGs with 25-45% CAB showed swift matrix formation and plastic deformation Adequate CAB content sustained Mx release with Fickian diffusion mechanism They promise for periodontitis treatment because of effective inhibition of related pathogens.