Objective To construct a ultraviolet-cross-linkable chitosan-carbon dots-morin (NMCM) hydrogel, observe whether it can repair cartilage injury by in vivo and in vitro experiments, and explore the related mechanism. Methods The chitosan was taken to prepare the ultraviolet (UV)-cross-linkable chitosan by combining methacrylic anhydride, and the carbon dots by combining acrylamide. The two solutions were mixed and added morin solution. After UV irradiation, the NMCM hydrogel was obtained, and its sustained release performance was tested. Chondrocytes were separated from normal and knee osteoarticular (KOA) cartilage tissue donated by patients with joint replacement and identified by toluidine blue staining. The 3rd generation KOA chondrocytes were co-cultured with the morin solutions with concentrations of 12.5, 25.0, 50.0 µmol/L and NMCM hydrogel loaded with morin of the same concentrations, respectively. The effects of morin and NMCM hydrogel on the proliferation of chondrocytes were detected by cell counting kit 8 (CCK-8). After co-cultured with NMCM hydrogel loaded with 50 µmol/L morin, the level of collagen type Ⅱ (COL-Ⅱ) of KOA chondrocytes was detected by immunofluorescence staining, and the level of reactive oxygen species (ROS) was detected by 2, 7-dichlorodihydrofluorescein diacetate (DCFH-DA) probe. Twenty 4-week old Sprague Dawley rats were selected to construct a articular cartilage injury of right hind limb model, and were randomly divided into two groups (n=10). The cartilage injury of the experimental group was repaired with NMCM hydrogel loaded with 25 µmol/L morin, and the control group was not treated. At 4 weeks after operation, the repair of cartilage injury was observed by micro-CT and gross observation and scored by the International Cartilage Repair Association (ICRS) general scoring. The cartilage tissue and subchondral bone tissue were observed by Safranine-O-fast green staining and COL-Ⅱ immunohistochemistry staining and scored by ICRS histological scoring. The expressions of tumor necrosis factor α (TNF-α), nuclear factor κB (NK-κB), matrix metalloproteinase 13 (MMP-13), and COL-Ⅱ were detected by Western blot and real-time fluorescence quantitative PCR. Results NMCM hydrogels loaded with different concentrations of morin were successfully constructed. The drug release rate was fast in a short period of time, gradually slowed down after 24 hours, and the amount of drug release was close to 0 at 96 hours. At this time, the cumulative drug release rate reached 88%. Morin with a concentration ≤50 µmol/L had no toxic effect on chondrocytes, and the proliferation of chondrocytes improved under the intervention of NMCM hydrogel (P<0.05). NMCM hydrogel loaded with morin could increase the level of COL-Ⅱ in KOA chondrocytes (P<0.05) and reduce the level of ROS (P<0.05), but it did not reach the normal level (P<0.05). Animal experiments showed that in the experimental group, the articular surface was rough and the defects were visible at 4 weeks after operation, but the surrounding tissues were repaired and the joint space remained normal; in the control group, the articular surface was rougher, and no repair tissue was found for cartilage defects. Compared with the control group, the experimental group had more chondrocytes, increased COL-Ⅱ expression, and higher ICRS gross and histological scores (P<0.05); the relative expressions of MMP-13, NF-κB, and TNF-α protein and mRNA significantly decreased (P<0.05), and the relative expressions of COL-Ⅱ protein/COL-2a1 mRNA significantly increased (P<0.05). Conclusion NMCM hydrogel can promote chondrocytes proliferation, down regulate chondrocyte catabolism, resist oxidative stress, protect chondrocytes from cartilage injury, and promote cartilage repair.