If a pilot light goes out on a gas fireplace, you’ll need to follow the instructions on your unit to relight the pilot light if it goes out. The pilot light lights the gas when you turn it on, so it serves a vital function. The thermocouple is near the pilot light, and if it senses the pilot light is off, it’ll shut off the gas to your fireplace for safety measures.