Why does cheese melt?

Heat softens fat and proteins in cheese until it turns gooey and stretchy.