Benzaldehyde-conjugated chitosan (CHâCBA) was synthesized by a coupling reaction between chitosan (CH) and carboxybenzaldehyde (CBA). The pH-sensitive self-cross-linking can be achieved through the Schiff base reaction. The degree of substitution (DS) of CHâCBA was controlled at 1.4â12.7% by optimizing the pH and reagent stoichiometry. The dynamic Schiff base linkages conferred strong shear-thinning and self-healing properties to the hydrogels. The viscosity of the 2 wt/v % CHâ CBA hydrogel decreased from 5.3 Ă 10 7 mPaâ˘s at a shear rate of 10 â2 s â1 to 2.0 Ă 10 3 mPaâ˘s at 10 2 s â1 at pH 7.4. The CHâCBA hydrogel exhibited excellent biocompatibility in vitro and in vivo. Moreover, the hydrogel adhered strongly to porcine small intestine, colon, and cecum samples, comparable to commercial fibrin glue, and exhibited effective in vivo tissue sealing in a mouse cecal ligation and puncture model, highlighting its potential as a biomaterial for application in tissue adhesives, tissue engineering scaffolds, etc.