The production of melanin, also known as melanogenesis, involves several steps. The key enzyme in this process is tyrosinase, which catalyzes the conversion of the amino acid tyrosine into DOPA and then into dopaquinone. Dopaquinone can then follow different pathways to produce various types of melanin, such as eumelanin (black or brown pigment) and pheomelanin (red or yellow pigment).