The Bavarian Class EP 5 (from 1927: DRG Class E 52) was an electric locomotive used for heavy passenger train services with the Deutsche Reichsbahn (DRG) and Deutsche Bundesbahn (DB). The first procurement programme for new locomotives set up by the Bavarian Group Administration of the Deutsche Reichsbahn included plans for an electric locomotive for heavy passenger train duties on electrified lines in Bavaria. From the numerous designs put forward, it was decided to opt for a 2'BB2' locomotive, which would be fitted with the same motors as another electric goods train locomotive in the programme, the DRG Class E 91.