Varenicline works at the nicotinic acetylcholine receptor (the alpha-4 beta-2 subunit), where it acts as a partial agonist, having some nicotinic effects, and as a partial antagonist, blocking the effects of nicotine.