Heating from the molecules up
A microwave oven cooks with radio waves of a particular frequency — 2.45 billion cycles per second. These waves have little effect on most materials, but water molecules are electrically lopsided, and the waves make them twist back and forth billions of times a second, trying to keep up.
All that molecular jostling is heat. Because the energy is delivered directly to the water inside the food, a microwave heats quickly and without first heating the air or the container — the plate stays cool except where the hot food touches it.
From magnetron to turntable
The waves are generated by a device called a magnetron, which turns mains electricity into microwaves using a strong magnet and a shaped metal cavity. A waveguide channels the waves into the oven, where a rotating fan-like stirrer scatters them around.
Even so, the waves form hot and cold spots, which is why most ovens rotate the food on a turntable and why instructions tell you to let food stand after cooking — heat keeps spreading from the hot spots to the cold ones by ordinary conduction.
Limits of the waves
Microwaves only penetrate a few centimetres into food, so thick items cook at the centre mainly by heat creeping inward. That is why a large potato takes much longer than the quick surface heating suggests.
Metal reflects microwaves, which is why the oven walls are metal — and why a fork left inside throws sparks, as charge concentrates on its sharp points. The mesh in the door lets you see in while blocking waves whose wavelength is far larger than its holes.

