What happens when candle wax is heated?

Wax melts on heating and solidifies on cooling.