After the Napoleonic Wars of the early 19th century, the bishopric was secularized and absorbed into the Austrian County of Tyrol. It was governed by the House of Habsburg-Lorraine. The region was the location of heavy fighting during World War I, as it was directly on the front lines between Austria-Hungary and Italy. Trentino was occupied by Italy in November 1918 and was annexed in 1919 by the Kingdom of Italy in the Treaty of Saint-Germain-en-Laye.