Boiling an egg causes protein denaturation, leading to a transition from a liquid to a solid state, which signifies a decrease in disorder (entropy).