Inorganic chemistry deals with the synthesis and behavior of inorganic and organometallic compounds. This field covers all chemical compounds except the myriad organic compounds (carbon based compounds, usually containing C-H bonds), which are the subjects of organic chemistry. The distinction between the two disciplines is far from absolute, as there is much overlap in the subdiscipline of organometallic chemistry. It has applications in every aspect of the chemical industry, including catalysis, materials science, pigments, surfactants, coatings, medications, fuels, and agriculture.
Many inorganic compounds are ionic compounds, consisting of cations and anions joined by ionic bonding. Examples of salts (which are ionic compounds) are magnesium chloride MgCl2, which consists of magnesium cations Mg2+ and chloride anions Cl−; or sodium oxide Na2O, which consists of sodium cations Na+ and oxide anions O2−. In any salt, the proportions of the ions are such that the electric charges cancel out, so that the bulk compound is electrically neutral. The ions are described by their oxidation state and their ease of formation can be inferred from the ionization potential (for cations) or from the electron affinity (anions) of the parent elements.