Heat pumps work by absorbing heat from a cold space and releasing it into a warmer space. These units move thermal energy in the opposite direction of spontaneous heat transfer.