When sugar is stored properly (in a cool, dry place) it will last for years, and is often used as a natural preservative, for example in canned fruit, jams and marmalades.