A mass of land ice flowing downhill, by internal deformation and sliding at the base, and constrained by the surrounding topography such as the sides of a valley or surrounding peaks, with the bedrock topography being the major influence on the dynamics and surface slope of a glacier. A glacier is maintained by accumulation of snow at high altitudes, balanced by melting at low altitudes or discharge into the sea.