Hydrogen occurs naturally on earth in compound form with other elements in liquids, gases, or solids. Hydrogen combined with oxygen is water (H2O). Hydrogen combined with carbon forms different compounds-or hydrocarbons-that are found in natural gas, coal, and petroleum.