When a powerful passenger train locomotive was needed for the Palatinate network, the main lines with many stops and turning points were considered, and so the decision was made in favor of a large tank locomotive. The locomotive developed as the Palatinate P 5 only achieved its greatest number of units after it was taken over by the Bavarian State Railways and is therefore primarily known under its Bavarian designation Pt 3/6.
The P 5 was the first 2-6-4 tank locomotive on the European mainland. The rear bogie was primarily used to carry the weight of the supplies and had the effect that as the amount of coal decreased, there was still almost the same weight on the coupled axles. The reserves in the first variant included 16 cubic meters of water and 5.2 tons of coal, which was more than in older, three-axle tenders. The three coupled axles were used to be able to carry a heavy boiler and have a high tractive power available.
Due to this arrangement, it had become necessary to bring the leading axle as close as possible to the first coupled axle. Therefore, an extremely unusual arrangement of the Krauss-Helmholtz bogie was used, in which the leading axle was connected to the second coupled axle instead of the first. In addition, the cylinders were arranged relatively high and inclined, since there was no longer enough space in the usual position.
The first production lot included twelve engines, which had been delivered in 1908 as the P 5 with saturated steam. After the takeover, the state railway procured another 29 units between 1911 and 1923, which were already running on superheated steam. The remaining engine were finally also equipped with a superheater in 1925. In comparison, the maximum train load of the saturated engines at two percent and 30 km/h was 140 tonnes, while this could be increased to 180 tonnes with superheater.
At the Reichsbahn, the older engines were given the numbers 77 001 to 77 012, while the newer ones became 77 101 to 77 129. The engines procured for Bavaria continued to be used on the express route between Garmisch-Partenkirchen and Munich, since these had similar characteristics to the routes for which the P 5 had originally been developed. Almost all of the locomotives of the newer series survived the Second World War, with only one eventually going to the Reichsbahn and the rest to the Bundesbahn, where they were used until 1956 and 1954 respectively. The nine remaining examples of the first series were sold to various private railways immediately after the war.