The hydrogen atom consists of a single positively charged proton and the corresponding negatively charged electron. To be stable it needs to have two electrons in its first shell. So it forms a bond with another hydrogen atom to form the diatomic molecule H2