Melanoma is cancer of the cells in the skin that produce melanin, a brown pigment. Melanoma often begins in a mole.