A novel mussel-inspired injectable hydrogel with self-healing and anti-biofouling capabilities is developed, possessing great potential as drug delivery carrier. The hydrogel can heal autonomously from repeated structural damage and also effectively prevent nonspecific cell attachment and biofilm formation.