The invention of the telegraph revolutionized communication in the 19th century. It was the first electrical communication system that allowed people to send messages over long distances. The telegraph used an electrical current to send coded messages along a wire, which could then be decoded at the other end.