 The first viaduct was closed in 1846 when the railway line was realigned to ease the sharp curve for locomotive operation, and a wooden bridge was built a little to the south to carry the realigned route.This was in turn replaced by a third structure further south again, which carries trains at the present day.The first viaduct was constructed as part of the Kilmarnock and Troon Railway, which opened on 6 July 1812.