The Beijing railway station's predecessor was the Zhengyangmen railway station, also called the Beijing station, which was located 2 kilometers due west, just outside Zhengyangmen (also known as Qianmen), a gate in the city wall directly south of Tiananmen Square.