Nicotine is a naturally produced alkaloid in the nightshade family of plants. It is widely used recreationally as a stimulant and anxiolytic. As a pharmaceutical drug, it is used for smoking cessation to relieve withdrawal symptoms.