The present invention relates to a compound for treating or preventing osteoarthritis. The compound relieves the joint pain, inhibits and attenuates the development of post-traumatic osteoarthritis in mouse model. The present invention also provides a pharmaceutical composition comprising the compound for treating or preventing osteoarthritis. The present invention further provides a method for treating or preventing osteoarthritis by administrating to the patient in need thereof with the pharmaceutical composition.