The most common reason that your pilot light on your water heater keeps going out is a damaged, bent, or dirty thermocouple. The thermocouple is part of the pilot burner assembly and connects to the gas control valve on the outside of the water heater. It is a simple device that converts the heat from a burning flame into a small electrical current, allowing it to work like a switch to control the flow of gas from the gas supply valve.