Microwaves are a form of electromagnetic radiation used in communications and cooking. Microwave ovens work by using a magnetron to generate microwaves around 2.45 GHz, which are transmitted into the oven cavity and absorbed by water molecules in food, causing them to heat up rapidly. The first microwave oven was invented accidentally in 1947 when a researcher discovered that microwaves could cook food quickly. Modern microwave ovens have safety mechanisms to prevent exposure to high levels of microwaves.