The microwave oven was invented by Percy Spencer, an American engineer and inventor, in 1945.