The Mannheim–Karlsruhe–Basel railway is a double-track electrified mainline railway in the German state of Baden-Württemberg. It runs from Mannheim via Heidelberg, Bruchsal, Karlsruhe, Rastatt, Baden-Baden, Offenburg and Freiburg to Basel, Switzerland. It is also known as the Rhine Valley Railway (German: Rheintalbahn) or the Upper Rhine Railway (Oberrheinbahn).