Gas is produced in a Gas Refinery.
Its main use is building and upgrading buildings. It is also used in unit production and building upgrades. It can be obtained via PvE Combat from the Maar Confederacy who specialize in its production. You can also earn it by opening Gas Resource Crates bought at the Store or by converting other resources at Resource Converter.