The demise of the Exarchate of Ravenna happened over a period of several decades, from around 725 until the definitive fall 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.