What is the process that darkens skin when it is exposed to UV light?

What determines the colour of skin, and what is the process that darkens skin when it is exposed to UV light?  In two hundred and fifty words