A gas shutoff valve is a safety or control device used to stop the flow of gas in pipelines or appliances. It can be manual or automatic, and is critical in both residential and industrial gas systems for maintenance, emergencies, or routine operation.