An electric guitar uses electromagnetic pickups to convert the vibrations of the strings into electrical signals. These signals are then amplified through an amplifier, producing the sound that we hear.