These walls are 1.5 to 5 meters (5–16 feet) thick, depending on their location and its strategic importance. The purpose of these walls were to help defend the city from sea-based attacks, particularly from the Republic of Venice, which was often considered a threat to Dubrovnik's safety.