A three-way stopcock is a valve used to control the flow of water, gas, or oil. It consists of a handle on one side and two valves on the other. When the handle is turned, one valve opens and allows water or gas to flow in; when the handle is turned further, the second valve opens and allows oil to flow in.