The first food to be microwaved was popcorn. It was accidentally discovered by Percy Spencer, an engineer, when he noticed that a candy bar in his pocket had melted while standing near a magnetron, the key component of a microwave oven.