Pigmentation is caused by sun exposure, hormonal changes, genetics, ​aging, skin injuries, certain medications, and medical conditions like ​Addison's disease and hemochromatosis. These factors stimulate ​melanin production, leading to uneven skin tone and spots.