Around the historic city center of Heraklion there are also a series of defensive walls, bastions and other fortifications which were built earlier in the Middle Ages, but were completely rebuilt by the Republic of Venice. The fortifications managed to withstand the longest siege in history for 21 years, before the city fell to the Ottomans in 1669.