Trieste was part of Austria-Hungary for much of its history (it is only 4 miles from Slovenia), before being annexed by the unified Italy after world war one.