Oxygen
Oxidation is the primary cause of staleness. Oxygen reacts with the lipids and volatile aromatic compounds in coffee, breaking them down into flat, cardboard-like molecules. A bag of coffee exposed to air loses noticeable flavour within 24 to 48 hours. Always seal your container immediately after use.