ObjectiveTo investigate the correlation between melatonin and osteoarthritis (OA) in rats. To explore the relevant mechanisms in the occurrence and development of osteoarthritis in rats, and to further understand the disease of osteoarthritis.MethodsForty healthy 6‐month‐old male SD rats were randomly divided into two groups: sham and drug intervention groups. Pre‐OA modeling, enzyme‐linked immunosorbent assay was employed to detect the levels of IL‐1β, IL‐6, COX‐2, and melatonin in the serum of the rats in each group. For OA modeling, we administered an injection of papain into the knee cavity of all rats. The levels of IL‐1β, IL‐6, and COX‐2 in the serum of rats in each group were detected 2 weeks after the modeling. Additionally, 2 weeks after the modeling, the rats in the drug intervention group were intraperitoneally injected with melatonin antagonists. The rats in the sham group were intraperitoneally injected with normal saline for 2 weeks. The levels of IL‐1β, IL‐6, and COX‐2 in the serum of each group were measured at the second, third, and fourth weeks after the drug intervention, and the levels of melatonin in the serum were measured at the second week after the drug intervention. Finally, the rats were euthanized by cervical dislocation, and pathological sections were collected from the knee joint to observe the pathological tissue changes under a microscope, and Mankin score was determined. The independent samples t‐test method was used for analysis.ResultsThe imaging examination after the drug intervention showed that the modeling of knee osteoarthritis in rats was successful. In the pathological findings, HE staining showed a legible cartilage structure of each layer, with cartilage proliferation and partial cartilage tearing to the radial layer. The tide line was intact; toluidine blue staining revealed more obvious changes. The differences among the mean values of IL‐6, IL‐1β, and COX‐2 measured in each period were statistically significant (t = 5.50, p < 0.05). The measured mean values of IL‐6, IL‐1β, and COX‐2 revealed statistically significant differences among the groups (t = 2.01, p < 0.05). The intergroup comparison of the Mankin scores in each period showed statistically significant differences.ConclusionMelatonin may inhibit inflammation and associated oxidative stress on the surface of knee cartilage. It may be related to the repair and regeneration of articular surface cartilage during the development of OA in the rat knee joint.