When energy is introduced into a region of matter, it heats up and the local temperature increases. This energy spontaneously diffuses away from the heated region. In general, heat should flow from warmer to cooler regions and it is not possible to externally change the direction of heat conduction. Here we show a magnetically controllable heat flow caused by a spin-wave current. The direction of the flow can be switched by applying a magnetic field. When microwave energy is applied to a region of ferrimagnetic Y3Fe 5O12, an end of the magnet far from this region is found to be heated in a controlled manner and a negative temperature gradient towards it is formed. This is due to unidirectional energy transfer by the excitation of spin-wave modes wit hout time-reversal symmetry and to the conversion of spin waves into heat. When a Y3Fe5O12 film with low damping coefficients is used, spin waves are observed to emit heat at the sample end up to 10 mm away from the excitation source. The magnetically controlled remote heating we observe is directly applicable to the fabrication of a heat-flow controller.