Rijeka is on Kvarner Gulf, an inlet of the Adriatic Sea. Because of its port, the city was historically important. It was the Kingdom of Hungary's largest and most important port. Shipbuilding is an important part of the economy.