Optical telegraphy, an early form of long-distance communication, used visual signals such as semaphore towers to convey messages across large distances before the advent of electrical telegraphy. This system relied on line-of-sight visibility and was limited by weather conditions and the need for a network of relay stations.