The line was opened in several sections. The section from Weiden to Wiesau was built by the Bavarian Eastern Railway Company as part of a connection from Regensburg to Cheb and operated by it until it was nationalised in 1876. The section from Weiden via Wiesau and continuing to Mitterteich was opened to traffic on 15 August 1864. After the opening of the link from Mitterteich to Cheb on 15 October 1865 and the opening of the link from Hof to Cheb on 1 November 1865, it was possible to travel by train from Regensburg to Hof—but only with the detour via Cheb, which is located in Bohemia and at that time belonged to the Austro-Hungarian Empire and is now in the Czech Republic. A connection was opened to Markt Redwitz on 15 August 1877. The Markt Redwitz—Nuremberg section of the Nuremberg–Cheb railway was opened on 15 August 1878. This line was extended to Cheb in 1883. The gap between Wiesau and Marktredwitz on Bavarian territory was closed on 1 June 1882, completing the current Weiden–Hof route. ;Opening dates
Desiro in Marktredwitz station The line was single-track until 1900. The duplication of the line caused problems in Groschlattengrün station, which was located in the village of Pechbrunn next to the local basalt works and could not be moved. On 30 and 31 October 1900, the entrance building was therefore removed from its foundations, raised by four centimetres and moved by ten metres. During this work, operations continued, even in the station building, without any significant interruptions. There was a serious railway accident at the southern entrance to Marktredwitz station on 9 July 1939. A D 25 express from Munich to Berlin Anhalter Bahnhof continued over the Drei-Bögen-Brücke into stationary freight wagons, which had detached from a preceding freight train. The train’s two locomotives, Prussian P 838 2145 and 38 2401, and the first carriages of the train were derailed and fell from the bridge. Until the end of the Second World War, the line was part of the most important long-distance route in southern Germany, connecting Munich, Dresden and Wrocław. In the 1939 summer timetable, a total of eleven express trains ran on the line. In addition to express trains from Munich to Dresden, Wroclaw and continuing to the Upper Silesian city ofBytom, long-distance trains ran on the Vienna–Leipzig–Hamburg, Berchtesgaden–Berlin/Dresden and Rome–Munich–Leipzig–Berlin routes. The Regionalbahn services on the whole line were formerly operated by Oberpfalzbahn of the Die Länderbahn with Siemens Desiro diesel railcars. The Regionalbahn services on the Marktredwitz–Hof section were reassigned as part of the Dieselnetz Oberfranken tendered by Bayerische Eisenbahngesellschaft on 8 February 2008. agilis took over operations of the Regionalbahn services In December 2012. This allowed an increase in services, including a continuous Hof–Marktredwitz Regionalbahn service.