The British Rail Class 40 is a type of British railway diesel locomotive. A total of 200 were built by English Electric between 1958 and 1962. They were numbered D200-D399. They were for a time the pride of the British Rail early diesel fleet. Despite their initial success, by the time the last examples were entering service they were already being replaced on some top-link duties by more powerful locomotives. As they were slowly relegated from express passenger uses, the type found work on secondary passenger and freight services where they worked for many years. The final locomotives ended regular service in 1985.