The Great Wall was primarily built to defend against Mongol invasions from the north. Mongolia lies directly north of China and was home to the Mongol tribes that repeatedly invaded Chinese territories. Korea and Taiwan are separated by water, while Russia was not the primary threat during the wall's construction.