Despatch riders always used to ride on horseback. In the 20th century they usually rode motorcycles. They were used a lot in World War I and even in World War II, although by the end of World War II electronic communications and cryptography had improved so that despatch riders were rarer.