When hydrogen chloride gas dissolves in water to produce hydrochloric acid, the hydrogen chloride molecule gives a proton (a hydrogen ion) to a water molecule. A co-ordinate (dative covalent) bond is formed between one of the lone pairs on the oxygen and the hydrogen from the HCl. Hydroxonium ions, H3O+, are produced.