The first slot machine was invented by Charles Fey in San Francisco, California, in 1895. It was called the "Liberty Bell," and it featured three spinning reels with symbols like horseshoes, diamonds, spades, hearts, and the Liberty Bell. The machine became incredibly popular and laid the foundation for the modern slot machines we see today.