Answer:
The microwave generating component of a microwave oven is called a magnetron. The magnetron is actually a vacuum tube (a vacuum diode, actually) that has an associated set of magnets. This tube (the magnetron) is a type of microwave cavity resonator, and it will "ring" electronically at microwave frequencies when it is powered up. The microwaves generated by the tube are coupled out of the cavity of this device and directed via a waveguide into the cavity (the cooking space) of the oven.