The first practical application of electrical engineering was the telegraph, invented by Samuel F.B. Morse in 1837.