We were rebuilding a section of wall at a corner where a burn runs under the wall. The wall beside the burn had completely collapsed, largely into the burn.
Once we'd cleared away the collapsed stone and dug out the earth which had either seeped or been washed down into the wall, we could see that some of the lower stones sloped out of the wall, meaning that anything built on them would tend to just fall back into the water. So we dug them out, and replaced them with more level ones.