The Midland Railway (MR) was a railway company in the United Kingdom from 1844 to 1922. It had a large network of lines managed from its headquarters in Derby. It became the third-largest railway undertaking in the British Isles after the Great Western Railway and the London and North Western Railway.