Rijeka is the principal seaport and the third-largest city in Croatia. It is located in Primorje-Gorski Kotar County on Kvarner Bay, an inlet of the Adriatic Sea and in 2011 had a population of 128,624 inhabitants. Historically, because of its strategic position and its excellent deep-water port, the city was fiercely contested, especially between Italy, Hungary, and Croatia, changing rulers and demographics many times over centuries. According to the 2011 census data, the majority of its citizens are Croats, along with a minority of Serbs, and smaller numbers of Bosniaks and Italians.