Varenicline is a selective nicotinic acetylcholine receptor partial agonist. It works by stimulating nicotine receptors more weakly than nicotine itself, reducing cravings and withdrawal symptoms while also blocking nicotine from binding to these receptors. This dual action makes it effective for smoking cessation.