Vitamin B12 is critical for DNA synthesis and the production of myelin, the protective covering around nerves. It also aids in the metabolism of amino acids and fatty acids. Adequate levels of vitamin B12 are necessary for cognitive health and preventing certain types of anemia, specifically megaloblastic anemia.