Why do eggs change when you cook them?

Heat makes egg proteins unfold and link together, turning runny whites solid.