Compounds which bind to opioid receptors are provided. In a preferred embodiment of the invention, the compounds are opioid receptor antagonists. The present invention also provides methods of treating conditions which are mediated by an opioid receptor.