Banging pipes, often called water hammer, occur when water flow suddenly stops or changes direction. High water pressure, loose pipes, or inadequate water hammer arrestors can contribute to the problem.