High-frequency electromagnetic waves are created inside the microwave oven, which pass through the wall of the oven and penetrate the food.