In 1815, the city became Austrian again and from 1816 to 1849 was the administrative center of the Kingdom of Illyria in the Austrian Empire.
Leta 1597 so v mesto prispeli jezuiti in ustanovili gimnazijo, ki se je razvila v kolegij.