Salt, also referred to as table salt or by its chemical formula NaCl, is an ionic compound made of sodium and chloride ions. All life has evolved to depend on its chemical properties to survive. It has been used by humans for thousands of years, from food preservation to seasoning.