Niacin is also referred to as Vitamin B because it was the third of the B vitamins to be discovered. It has historically been referred to as "vitamin PP". That name was derived from the term "pellagra-preventing factor", because the disease pellagra is due to a deficiency of niacin in the diet.