 It was one of three marches, along with Friuli and Carantania, guarding Italy from the Avars, Slavs, and Magyars successively.In the first decade of the 9th century, Istria was ruled by one Duke John, nominally according to its ancient Byzantine customs, but in fact as a Frankish vassal.The region then had nine cities, Trieste foremost among them.