It is located on the outside of the water heater where the gas pipe enters the unit and has have a knob on it. The valve regulates gas flow to the pilot burner beneath the hot water tank. Turn the valve knob to the “Off” position. Wait five minutes.