Water hammer is a pressure surge or wave resulting when a fluid in motion is forced to stop or change direction suddenly, causing a shockwave that can damage pipes and components. It is commonly encountered in plumbing systems when valves close abruptly, and can be mitigated by using air chambers or pressure relief valves.