Salt is salty because it contains sodium chloride, which is a mineral compound made up of sodium and chlorine ions. When dissolved in water or saliva, these ions separate and interact with taste receptors on the tongue, specifically the ones responsible for detecting saltiness. This interaction triggers a neural response that is interpreted by the brain as the taste of salt.