The Venetian part of the peninsula passed to the Holy Roman Empire of the German Nation in 1797 with the Treaty of Campo Formio, until the period of Napoleonic rule from 1805 to 1813 when Istria became part of the Illyrian provinces of the Napoleonic Empire.