The Stefan problem is a class of problems in mathematical physics that involve determining the temperature distribution in a medium undergoing a phase change, such as ice melting to water. It is characterized by a moving phase boundary whose position is determined as part of the solution, guided by Stefan's condition which connects the latent heat at the boundary to the heat flux in the material.