Rijeka, formerly known as Fiume, is a city located in the northern tip of the Kvarner Gulf in the northern Adriatic. It is currently the third-largest city in Croatia. It was part of the Roman province of Dalmatia, and later of the Kingdom of Croatia. It grew during the 12th to 14th centuries as a seaport within the Holy Roman Empire, trading with Italian cities. Under the rule of the House of Habsburg from 1466, it was made a free city; and, although part of the Duchy of Carniola, it developed local self-government.