The Great Wall of China was constructed beginning in the 3rd century BC to protect ancient Chinese states and empires from invasions by nomadic groups on the northern steppes. It was built as a series of fortifications stretching east to west made of various materials like stone, brick, and wood, forming a barrier along China's northern border.