Heme is an iron-containing porphyrin that is essential for hemoglobin function. Porphyrins are cyclic compounds formed from four pyrrole rings linked by methylene bridges that can bind metal ions. Heme synthesis primarily occurs in erythroid precursor cells in the bone marrow and liver cells, involving multiple enzymatic steps to convert the precursor uroporphyriinogen to protoporphyrin and insert iron.