Why do eggs become firm when heated?
Short answer
Heat changes egg proteins so they link together into a network that makes the egg firm.
How it works
Overheating can push out water and make the egg tough or change its surface. Temperature and time control texture.
Key point
The practical point is this: Temperature and time control texture.