The entropy of a system during phase change (phase transition) increases, if the phase transition is towards higher internal energy (e.g., during melting) and decreases if the phase transition is towards lower internal energy (e.g., during freezing). Therefore, during phase change, entropy of the system may increase or decrease.