This important design feature was carried forward to later locomotives. Until the 1800s, railways were constructed of cast-iron. Unfortunately, cast-iron was prone to rust and it was brittle, often causing it to fail under stress. In 1820, John Birkinshaw invented a more durable material called wrought-iron.