An acid reacts with a base to form salt and water. Hydrochloric acid reacts with sodium hydroxide solution to form sodium chloride(salt) and water. $$NaOH (aq) + HCl(aq) \rightarrow NaCl(aq) + H_2O(l)$$ Such a reaction is termed a neutralisation reaction.