How does sugar caramelize?

Can you answer this question?