The Meckesheim–Neckarelz railway is a branch line in northern Baden between Meckesheim and Aglasterhausen that used to run to Neckarelz. It was part of the former Baden Oldenwald Railway from Heidelberg to Würzburg, and thus a main line, which is why its trackbed was built for two tracks. The section remaining today also goes under the name of Schwarzbach Valley Railway (German: Schwarzbachtalbahn).