The Byzantine Exarchy in NE Italy came to a definitive end with the Lombard conquest of Ravenna in 751.
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.