With Napoleon's defeat in 1814 , Trento was again annexed by the Hambsburg Empire. The church government was finally extinguished, so Trento was now being governed by the secular government of Tyrol. In the next decades Trento experienced a modernization of administration and economy with the first railroad in the Adige valley opening in 1859.