Pellagra is often caused by a chronic lack of vitamin B-3 (niacin) in the diet, although it can also be a complication of isoniazid therapy and may occur despite vitamin B-6 (pyridoxine) supplementation.