The Pactum Lotharii was a treaty between the Duchy of the Venetians and the Holy Roman Empire, or parts thereof, from 840.
The lagoon was settled in Antiquity, and in the 600s, there were numerous known towns, and several important cities. Venice, however, was not one of them.