Hydrogels have been widely used in biomedical fields including tissue engineering, drug delivery and cell delivery and 3D cell delivery due to abundant water content in their hydrophilic three-dimensional networks and having soft tissue similar to the human body. In recent years, supramolecular hydrogels (SHG) formed by the inclusion complex between polyethylene glycol (PEG) and macrocycles such as cyclodextrin (CD) have attracted much interest due to their excellent biocompatibility and great potential in biomedical. In this research, a carboxymethyl cellulose (CMC)-based graft copolymer was prepared by using acrylic acid (AA) and maleic anhydride functionalized β-CD (β-CD-MA) as comonomers and ammonium persulfate (APS) as initiator. Then, a self-healable supramolecular hydrogel was synthesized by formation of a host-guest inclusion complex between CMC-g-poly (AA-co-β-CD-MA) as host molecule and cytosine- and guanine-modified PEG as guest molecules. The prepared hydrogel was characterized by Scanning Electron Microscope (SEM), X-Ray diffraction (XRD), Fourier transform infrared spectroscopy (FTIR), Nuclear magnetic resonance spectroscopy (1H NMR). The thermal stability of hydrogel was also determined by thermal gravimetric (TGA) and differential scanning calorimetry (DSC) methods. In addition, the loading and release profiles of metformin hydrochloride (MH) drug as a model on hydrogel was investigated. The results indicated that the drug release from the hydrogel peaks around 360 min and aligns with the Ritger-Peppas model. The hydrogel's self-healing property was examined at ambient temperature and 37 °C. It showed 70 % healing in 1.5 h and completed recovery after 9 h.