The Murg Valley Railway (German: Murgtalbahn) is a 58 kilometre long railway line in the Northern Black Forest in Germany, that links Rastatt and Freudenstadt. It was opened in stages from 1868 to 1928 being built outwards from both Rastatt and Freudenstadt. The route through the narrow Murg Valley required the construction of numerous tunnels and bridges. The section between the stations of Baiersbronn and Freudenstadt Stadt is a steep ramp which is why it had to be operated until 1926 as a rack railway. Even today it can only be worked by vehicles that have the required approval.