@Principality where there is more sunlight, so skin doesn't get burnt, the skin produces more at times excess melanome, which gives the pigment of black in a human's skin... That's why people at certain places are more white such as snowy places and people at certain places are more black such as desert like places.
Over time it gets embedded in our genes, and therefore when it's passed down, sometimes people are born black
Over time it gets embedded in our genes, and therefore when it's passed down, sometimes people are born black