During the First and Second World Wars the town was repeatedly bombarded on account of the strategic importance of the Venice–Udine railway. The earthquake of 18 October 1936 caused great damage to the town's buildings and to its ancient city walls.