Coffee should be stored in an airtight container in a cool, dry place. It is best to store coffee away from light, heat, and moisture, as these can all affect the flavor of the coffee. If you have opened a bag of coffee, it is best to use it within a few weeks to ensure that it stays fresh.