The nucleus of the town was formed slightly later than the hamlet of Gainiga, where finds of Roman origin were found which testify to life in these lands (in fact the Via Annia passed here, built by Tito Annio Lusco in 153 BC, which still follows via Colonne and via Anarè).
It was the Lombards who gave the name "Gainiga" to the center near Ceggia: in fact, in 998, in an imperial decree, the toponym Gaieniga is found, coming from the word Gahagi, meaning "wood, hedge".
Even the toponym "Rivazancana" is from this period: in 1024, in the Cittanova pact, we find Rivo cancani, originating from the German term zanka (earthenware).
In 1317 Ceggia appears to be present in the inventory of the properties of the Da Camino family of Oderzo, while in 1389 it became part of the Serenissima Republic of Venice .
But in 1797 Napoleon's conquests brought down the Republic of Venice, so Ceggia and the rest of the Veneto found themselves part of the Austrian government.