After being extracted, natural gas is piped to refineries for the removal of unwanted chemicals, such as carbon dioxide, hydrogen sulfide, and sulfur dioxide, as well as water vapor, which can corrode pipelines.
Ekstraheerimise järel suunatakse maagaas torujuhtmete kaudu rafineerimistehasesse, et eemaldada soovimatud kemikaalid, nagu süsinikdioksiid, vesiniksulfiid ja vääveldioksiid, samuti torujuhtmeid korrodeerima kippuv veeaur.