Original: The site, when first chosen, was in marshland outside the city walls.
Simplified: When the site was chosen, it was a marshland outside the city walls.