Microwave's cook food by the use of radio waves at a specifically set frequency that agitate the water molecules in food.
As the water molecules get increasingly agitated they begin to vibrate at an atomic level and generate the heat. This heat is what actually cooks the food.