Morse code and the telegraph allowed for faster long-distance communication before telephones. Samuel Morse developed the telegraph system in 1832 in response to being unable to see his sick wife before she died due to slow communication by letter. Morse code became very popular for telegraph communication by 1850, allowing people to communicate across long distances through electrical signals representing letters, numbers, and punctuation. It remained a primary means of long-distance communication until around 1900 when the telephone was invented.