Lavender is commonly used for anxiety, stress, and insomnia. It is also used for depression, dementia, pain after surgery, and many other conditions, but there is no good scientific evidence to support many of these uses. In foods and beverages, lavender is used as a flavor component.