The Class 5M2 and Class 5M2A are electric multiple units that provide commuter rail services operated by Metrorail in the major cities of South Africa. The original Class 5M2 trainsets were built for the South African Railways by Metro-Cammell between 1958 and 1960. Most of those in use today, however, are of Class 5M2A, built to the same design by Union Carriage & Wagon (UCW) from 1962 to 1985; a total of 4,447 coaches were built by UCW.
A programme began in the 2000s to rebuild the trains, which were subsequently designated Class 10M3, 10M4 and 10M5. Class 5M2A coaches were stripped down to the underframe, which was then used as the base for the Class 10Ms.