Ridges that form along the sides of glacial valleys as a glacier melts are called lateral moraines. They are parallel ridges of debris deposited along the sides of a glacier. Hope this answers the question. Have a nice day. Feel free to ask more questions.