According to the laws of thermodynamics, heat energy spontaneously flows from an object of higher temperature to an object of lower temperature. This transfer continues until both objects reach thermal equilibrium, meaning they are at the same temperature. Heat never spontaneously flows from cold to hot.