in september 1862, the royal württemberg state railways () planned to build a railway from illingen via vaihingen an der enz and weil der stadt to calw. it did not pursue this project for long because the kingdom of württemberg had begun negotiations with the grand duchy of baden in order to build the nagold valley railway from pforzheim. in february 1865, the baden government agreed to the construction of this line.