The invention relates to capthepsin K inhibitors and uses thereof, specifically relates to a class of compounds having the formula (I) which are used for treating or preventing cathepsin dependent diseases or conditions, specifically, wherein the cathepsin is capthepsin K. The compounds and compositions thereof can be used as bone resorption inhibitors for the treatment of associated diseases.