The Great Wall of China is a vast fortification system built over millennia, not a single continuous wall with defined endpoints. The easternmost section is generally considered to be at Shanhaiguan in Hebei Province, where the wall meets the Bohai Sea. The westernmost terminus is typically identified as Jiayuguan Fort in Gansu Province, near the border with Xinjiang. Some sections extend further east toward the Liaodong Peninsula, reflecting the wall's evolutionary construction by various dynasties.