Water has a simple molecular structure composed of one oxygen atom covalently bonded to two hydrogen atoms. This gives water a polar molecular structure with partial positive charges near the hydrogen atoms and a partial negative charge near the oxygen atom. This polarity allows water to dissolve ionic compounds through electrostatic interactions between the ions and polar water molecules but not non-polar covalent compounds which do not interact strongly with water. Heavy water, composed of deuterium and oxygen, is produced through electrolysis or distillation of ordinary water. It has similar but not identical chemical properties as ordinary water and is used as a neutron moderator and to produce deuterium.