The Peace of Aachen was a treaty from 812 between the Caroligian and the Byzantine Empires, which established their border.
Venice was an independent state for almost a millennium, but it might note have been. It all hinged on a single battle fought in the Venetian lagoon in 810.