This seems to have been done by demolishing tombs and other buildings, and filling up a great part of the city, so that it should not serve as a shelter for pirates.(1) Nicholas I (858-867) restored Gregoriopolis, which was already lying in ruins, and no doubt destined to further piratical incursions: but we cannot now attempt to trace its history through the middle ages.(2)