Salt was probably used in Egypt as long ago as 4000 BC. In ancient times, salt was more valuable than it is now, because it was hard to get in many places, and could be used not only to give foods flavor, but also to make them last longer. It allowed food to be kept past its season, and taken on long trips.