Moles are formed when skin cells grow in a cluster instead of spreading throughout the area. It can happen due to various causes, with pregnancy and puberty being natural causes. When the moles are exposed to excess UV rays from the sun or through tanning booths, they mutate. This mutates them and changes their size, color, and even spread throughout your body.