Gas shut-off valve cut the flow of gas to your house in the event of an earthquake (or, depending on the type of valve, a potentially dangerous leak due to other causes.) Each device has a simple mechanism inside which activates and blocks the flow of gas.