When there is a phase change from a liquid to a solid, what energy change occurs?

When there is a phase change from a liquid to a solid, the energy change that occurs is the release of heat energy. This is because as a liquid transforms into a solid, it undergoes a process called freezing or solidification, in which the molecules lose energy and slow down, resulting in the formation of a regular and rigid structure. The release of heat energy is necessary to maintain the conservation of energy during this phase change.