China continued to build mainline steam locomotives until the late 20th century, even building a few examples for American tourist operations. China was the last main-line user of steam locomotives, with use ending officially on the Jining–Tongliao Railway at the end of 2005.