The Main Valley Railway (German: Maintalbahn) is a single-tracked, main line running alongside the river Main in Bavaria and Baden-Württemberg in southern Germany. In Miltenberg it connects to the Miltenberg–Walldürn railway. It also has a junction with the Tauber Valley Railway at the Baden town of Wertheim, that runs to Crailsheim.