Glaciers are large masses of moving ice that can carve out valleys through weathering and erosion. As a glacier moves, it picks up rocks and debris, which it then grinds against the bedrock below. This grinding action, combined with the weight of the glacier, can create deep, U-shaped valleys.