One of the most distinctive engines on the Keighley and Worth Valley Railway has been withdrawn from service.

Volunteers will spend the next two years overhauling the LNWR 1054 Coal Tank in a workshop at Ingrow West station.

The Bahamas Locomotive Society, which has responsibility for the black locomotive, plans it to be operational again by 2022.

An official ceremony at Ingrow to mark the withdrawal was attended by VIPs including Keighley town mayor Councillor Peter Corkindale and Richard Pennington, from the National Trust, which owns the engine. The Bahamas Locomotive Society withdrew Coal Tank because its boiler ticket had run out.

Volunteers will begin stripping down the locomotive before the end of the year, and expect maintenance work to be minimal, confined to replacing boiler tubes.

They will clean everything they take up the locomotive, repairing and replacing anything needed.

Coal Tank was built for the London & North Western Railway in 1888 and spent much of its working life on railways in Wales.

It travelled more than 880,000 miles during its 51 years of active service, and was saved from the scrapheap to be used during the Second World War.

In 1959 Coal Tank again faced scrapping, but after a £500 public appeal became the first engine to be purchased for preservation. For many years it was displayed by the National Trust at Penrhyn Castle in North Wales.

Following an overhaul by Bahamas volunteers, supported by the Heritage Lottery Fund, it first appeared on the Keighley and Worth Valley Railway in February 2012.

It has since visited the Great Central Railway and the Pontypool & Blaenavon Railway, and celebrated its 125th birthday in 2013, when it was presented with the Institution of Mechanical Engineers’ Engineering Heritage Award.