Ashwagandha's main active components include mildly calming alkaloids. These steroidal lactones produce significant adaptogenic effects. Some of these lactones (withanolides) have been reported to be structurally similar to ginseng's ginsenosides and are used to support healthy adrenal, cognitive, and immune system function, as well as to relieve menstrual discomfort.