Question: why pipes rattle when water turned on?
Answer: A water hammer is caused by fast-closing valves, like toilet fill valves and faucets. As the water flows through the pipes and the valve shuts off quickly, it causes the water to stop suddenly in the pipes, causing the "hammer" effect. ... Once the lowest pipe runs clear, close that drain and turn the water main back on.