Skin color is highly variable in Africans, but the underlying molecular mechanisms remain poorly understood. Using population genetics and functional genomics, we identified key genetic variants, regulatory elements and genes that affect skin pigmentation, an adaptive trait, which provides valuable insights into the mechanisms underlying human skin color diversity and evolution.