City walls enclose the northern part of the city and they are connected with the Fortica fortress. Their building started in the 13th century and they got the present shape during the 14th and 15th centuries. Top of the walls is fortified with a battlement with merlons, crenels and a walkway. It is reinforced with square towers at several places. Eastern gate is called Porta Badoer. Local name is Gradno vrota which means city gate because as opposed to other gates which connect various parts of the city of Hvar this city gate leads outside the city. City walls have four gates.