Hydrochloric acid, also known as muriatic acid or spirits of salt, is an aqueous solution of hydrogen chloride with the chemical formula HCl(aq). It is a colorless solution with a distinctive pungent smell. It is classified as a strong acid. It is a component of the gastric acid in the digestive systems of most animal species, including humans. Hydrochloric acid is an important laboratory reagent and industrial chemical.
In the early tenth century, the Persian physician and alchemist Abu Bakr al-Razi (865–925, Latin: Rhazes) conducted experiments with sal ammoniac (ammonium chloride) and vitriol (hydrated sulfates of various metals), which he distilled together, thus producing the gas hydrogen chloride. In doing so, al-Razi may have stumbled upon a primitive method for producing hydrochloric acid, as perhaps manifested in the following recipe from his ("The Book of Secrets"):
Take equal parts of sweet salt, Bitter salt, salt, salt, Indian salt, salt of , and salt of Urine. After adding an equal weight of good crystallised Sal-ammoniac, dissolve by moisture, and distil (the mixture). There will distil over a strong water, which will cleave stone () instantly.
However, it appears that in most of his experiments al-Razi disregarded the gaseous products, concentrating instead on the color changes that could be effected in the residue. According to Robert P. Multhauf, hydrogen chloride was produced many times without clear recognition that, by dissolving it in water, hydrochloric acid may be produced.
Drawing on al-Razi's experiments, the De aluminibus et salibus ("On Alums and Salts"), an eleventh- or twelfth-century Arabic text falsely attributed to al-Razi and translated into Latin by Gerard of Cremona (11441187), described the heating of metals with various salts, which in the case of mercury resulted in the production of mercury(II) chloride (corrosive sublimate). In this process, hydrochloric acid actually started to form, but it immediately reacted with the mercury to produce corrosive sublimate.