Hydrogen is also a part of water . Most of the Earth 's hydrogen is in the form of chemical compounds such as hydrocarbons and water . Hydrogen gas is produced by some bacteria and algae and is a natural component of flatus , as is methane , itself a hydrogen source of increasing importance .