In chemistry, valency or valence is the number of chemical bonds that an atom of a certain element can form.
For a long time, people thought that this number was a fixed property of the element in question. They thought that carbon always has four bonds, oxygen always has two, and hydrogen always has one. The problem was seen only later. For example, phosphorous sometimes behaves as if it had three bonds, a valence of three. At other times, though, it seems to have five bonds.