Magnetrons are high-powered vacuum tubes that generate microwaves using the interaction of a stream of electrons with a magnetic field, primarily used in radar systems and microwave ovens. Their efficiency in converting electrical energy into microwave radiation makes them indispensable in both military and domestic applications.