Melanocyte stimulating hormone is secreted by our pituitary gland. It is this hormone that controls the skin pigmentation. It produces melanin which causes skin darkening or lightening. Higher the melanin pigment, darker the skin. On exposure to UV rays, melanin pigment is increased which causes tanning.