The Yanshan and Xishan ranges meet at Nankou, in Changping District, northwest of the city. The intersection creates a massive fault line and rift valley through which the city's main roads and railroads to the northwest pass.