When you boil an egg, the heat first breaks (unfolds) the proteins, and then
allows the proteins to link to other proteins. As the proteins form these new, strong bonds, the water that
surrounded each protein molecule when the egg was liquid is forced out. That's why the egg turns hard.