Heat is the transfer of thermal energy from one substance to another due to the temperature difference between the two substances.