Pellagra is a disease caused by a deficiency in niacin (vitamin B3). Niacin is essential for the body’s metabolism and energy production. Symptoms of pellagra include dermatitis, diarrhea, and dementia, and the condition can be treated with niacin supplementation.