They are formed when a glacier erodes the land , and then melts , filling the hole or space that it has created .
The glacier erodes the land , and then as it melts , water fills the hole or space that has been created .