The present invention provides substituted pyrazolo-heterocycles having the general structure of formula IAlso provided are pharmaceutically acceptable salts, acid salts, hydrates, solvates and stereoisomers of the compounds of formula I. The compounds are useful as modulators of cannabinoid receptors and for the prophylaxis and treatment of cannabinoid receptor-associated diseases and conditions, such as pain, inflammation and pruritis.