Vitamin B12 was discovered by its relationship to pernicious anemia, which is an autoimmune disease. Because an "intrinsic factor" is needed for B12 to be absorbed, its lack causes a vitamin B12 deficiency. Many other kinds of vitamin B12 deficiency have since been found.