 The patented invention proved lucrative and by 1851 telegraph lines in the United States spanned over 20,000 miles (32,000 kilometres).The first successful transatlantic telegraph cable was completed on 27 July 1866, allowing transatlantic telecommunication for the first time.Earlier transatlantic cables installed in 1857 and 1858 only operated for a few days or weeks before they failed.