This study successfully synthesized PDB hydrogel and developed a gatifloxacin drug release system. The hydrogel exhibited good thermosensitivity, pH responsiveness, stability, and excellent biocompatibility, which can enhance drug retention, utilization, and therapeutic effects on the ocular surface.