The earliest elevated railway was the London and Greenwich Railway on a brick viaduct of 878 arches, built between 1836 and 1838. The first 2.5 miles (4.0 km) of the London and Blackwall Railway (1840) was also built on a viaduct.