They actually elevated the building site, dumping tons of rock and dirt to make the base and then building up from there. Remember this was done starting in 1010 and going through the early 1100s. No wheels, no metals, and ropes made from dog hair and yucca fiber.