In chemistry, the valence or valency of an element is a measure of its combining power with other atoms when it forms chemical compounds or molecules. The concept of valence was developed in the second half of the 19th century and was successful in explaining the molecular structure of inorganic and organic compounds.