How does a suntan form?

Can you answer this question?