Spirocyclic heterocyclic derivatives, pharmaceutical compositions containing these compounds, and methods for their pharmaceutical use are disclosed. In certain embodiments, the spirocyclic heterocyclic derivatives are ligands of the δ opioid receptor and may be useful, inter alia, for treating and/or preventing pain, anxiety, gastrointestinal disorders, and other δ opioid receptor-mediated conditions.