The invention provides 8-azabicyclo[3.2.1]octyl-2-hydroxybenzamide compounds of formula (I):wherein R2, R7, andmare defined in the specification, or a pharmaceutically-acceptable salt thereof, that are antagonists at the mu opioid receptor. The invention also provides pharmaceutical compositions comprising such compounds, methods of using such compounds to treat conditions associated with mu opioid receptor activity, and processes and intermediates useful for preparing such compounds.本發明提供一種式(I)之8-氮雜雙環[3.2.1]辛基-2-羥基苯甲醯胺化合物:其中R2、R7及m定義於說明書中,或其醫藥上可接受之鹽,該化合物為μ類鴉片受體之拮抗劑。本發明亦提供包含該等化合物之醫藥組合物、使用該等化合物治療與μ類鴉片受體活性有關之病狀的方法、及用於製備該等化合物之方法及中間體。