The specific temperature at which this happens is called the freezing point or melting point, and it varies depending on the substance.
For example, water freezes at 0°C (32°F), while mercury freezes at -38.83°C (-37.89°F).