The present invention relates to compounds of formula I, II, III or IV:
##STR00001## wherein R.sup.1-R.sup.4, R.sup.7-R.sup.10,
R.sup.13-R.sup.17 and R.sup.20-R.sup.24 are as described herein. The
compounds are active as cannabinoid receptor ligands, e.g., CB2 ligands.
Methods of preparing the compounds, compositions containing the compounds
and methods of treatment using the compounds are also disclosed.