The deficiency of vitamin B12 is often associated with a vegan diet. The lack of animal products in the diet excludes vegans from getting vitamin B12 absolutely.
Even the selective vegetarians who eat only dairy products and no meat or egg too have the risk of not getting adequate amounts of the vitamin. The micronutrient Vitamin B12 is only found in animal foods.