The walls themselves were built of beaten earth. The breathtaking stonebuilt walls that can be seen today, marching across thousands of miles of mountains and plains, were built more than fifteen hundred years later, under the Ming dynasty (which ruled China from 1386 to 1644).