Here's a breakdown:
* Erosion: As a glacier moves, it picks up rocks, soil, and other debris from the ground. This material is transported within the glacier, often frozen within the ice.
* Deposition: When the glacier melts or retreats, the material it carried is deposited, forming moraines. The type of moraine depends on where the material is deposited:
* Terminal Moraine: Forms at the glacier's furthest point of advance.
* Lateral Moraine: Forms along the sides of the glacier.
* Medial Moraine: Forms when two glaciers merge, creating a moraine down the middle of the combined glacier.
* Recessional Moraine: Forms as a glacier retreats and pauses for a time.
So, glaciers are the primary agents responsible for creating moraines. They are essentially the leftover "garbage" from glacial activity.