when the site was chosen at the end of each day 's march , each legionary would go to his assigned position , and , before nightfall , they would throw up an earthen palisade , surrounded , of course , by the dry moat which is where they got the dirt .