Through its history, Ljubljana has been struck by floods. The latest was in 2010. Southern and western parts of the city are more flood-endangered than northern parts. The Gruber Canal has partly diminished the danger of floods in the Ljubljana Marshes, the largest marshes in Slovenia, south of Ljubljana.