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.