How does the Microwave Work?

Microwave contains of Magnetron waves which converts electricity into high frequency microwaves. Microwaves causes the food molecule to vibrate quickly to create friction which generates heat to cook the food.