Hammer arrestors are devices designed to prevent or minimize water hammer, which is the loud banging or knocking noise that occurs when water flow is suddenly stopped or redirected.