The Great Wall

European mercenaries searching for black powder become embroiled in the defense of the Great Wall of China against a horde of monstrous creatures.
1700 years to build. 5500 miles long. What were they trying to keep out?