The Lovrijenac fortress is situated outside the western gate of the old city, built on steep rocks more than 30 meters above sea level, guarding the entrances and exits of the two gates of the old city of Dubrovnik from both land and sea directions. There were cannons in the fortress.