Vitamin B12, also known as cobalamin, is the only vitamin that contains cobalt as an essential component of its molecular structure. The cobalt atom sits at the center of the corrin ring and is crucial for B12's biological activity. Iron is important for hemoglobin, magnesium is a cofactor for many enzymes, and zinc is involved in immune function, but only cobalt is integral to vitamin B12.