The trade declined in the late years of the Republic of Venice, and the city was acquired by the Austrian Empire with the Treaty of Campo Formio (1797). In 1814 it became part of the client Kingdom of Lombardy–Venetia and, in 1866, of the newly formed Kingdom of Italy.