One of eight of the family of b vitamins, b12 or cobalamin, is a water-soluble vitamin. It’s role is in the formation of red blood cells, and maintaining the normal functioning of our brains and nervous systems (read: important). Plants, animals, and humans are not capable of producing the vitamin, only bacteria and archaea have the enzymes that allow it. Some foods are speculated (seaweeds) to be a natural sources of B12, others have been produced industrially to include it.
Read more here.