It is one of the forms of energy transfer.
When two objects with different temperature are in contact with each other, temperature gradually becomes equal. This is because heat is transferred between both objects. Energy is transferred as heat. The unit used for quantity of heat is [J].
When considering the quantity of heat per unit time, the unit [W] ( = [J/s]) is used.