It is used to cook the food in a short time. When the oven is operated, the microwaves
are generated, which in turn produce a non-uniform oscillating electric field. The water molecules in the food which are the electric dipoles are excited by an oscillating torque. Hence few bonds in the water molecules are broken, and heat energy is produced. This is used to cook food.