the company was formed in 1844 by the merger of the midland counties railway, the north midland railway, and the birmingham &amp; derby junction railway. the birmingham &amp; gloucester railway joined two years later. the earlier systems met at derby railway station. the mr established its locomotive works, and later its carriage and wagon works, at derby.