In chemistry, a salt is a chemical compound consisting of an ionic assembly of cations and anions. Salts are composed of related numbers of cations and anions so that the product is electrically neutral.