Bokar Fortress and the Lovrijenac Fortress in Dubrovnik, Croatia
Construction on these two fortresses was started in the 15th century, and they were designed to guard the Dubrovnik harbor. However, by the time they were completed in the 16th century, Dubrovnik's harbor had moved to the other side of town.
Source...