Why is water 2 parts hydrogen and 1 part oxygen?

Hydrogen has a valence of 1, meaning each hydrogen atom must form one chemical bond to become stable. Oxygen has a valence of 2. So it is fairly easy for two hydrogen atoms to bond with one oxygen atom.