Microwave ovens generate radiation using a component called a magnetron, which produces high-frequency electromagnetic waves. These waves are contained within the oven due to its design, which includes metal walls that reflect the radiation and prevent it from escaping. As a result, the exterior of the microwave remains cool while the interior heats food. This containment is essential for safe operation and effective cooking. Understanding these mechanisms clarifies how microwave ovens function efficiently.