In 1945, engineer Percy Spencer was testing radar equipment at the company Raytheon. Radar sends out invisible microwaves, and they melted a candy bar in his pocket.
So he tried heating food with them: popcorn, then an egg, which exploded in an experimenter's face.
In 1947, Raytheon built the first microwave oven for sale. It stood nearly 1.8 meters tall.