Question

What does heat do in this reaction?

enter image description here