The first rail line in Germany was opened between Nürnberg and Fürth in 1835, and within a century the country had some 35,000 miles (56,000 km) of track. After 1870 the German states began transferring the privately owned railroads to public ownership.