Niacin deficiency, also known as pellagra, occurs due to inadequate intake of niacin (vitamin B3) or its precursor, tryptophan. Niacin is crucial for metabolic processes, including energy production and DNA repair. Pellagra is characterized by the "three D's": dermatitis, diarrhea, and dementia. If left untreated, it can be fatal.