Glaciers are formed through the continual deposition of snow that transforms into ice and compresses air pockets over hundreds of years. Icebergs are formed when chunks of glaciers break off and float on the water.