One aspect of the present invention relates to heterocyclic compounds that are ligands for nicotinic acetylcholine receptors. A second aspect of the invention relates to the use of a compound of the invention for modulation of a mammalian nicotinic acetylcholine receptor.