TODAY'S SCIENCE TRIVIA: You've probably heard about how honey has an eternal shelf life and never expires. Thanks to its chemical composition, this is (almost always) true.
Honey has three things going for it that stop it from going bad over time. For starters, honey is a sugar, which means it's hygroscopic. It only retains a tiny amount of water (less than 20%).
Additionally, honey has a an average pH of about 3.9. A pH of 0 indicates high acidity, while a pH close to 7 indicates neutrality. (For comparison, lemon juice has an average pH of 2.3, while Florida oranges have an average pH of around 4.) This is largely because of the acids produced by bees' enzymes (specifically, glucose oxidase) as they break down the collected nectar in their honey stomachs (which are different from their normal stomachs).
Last but not the least, the aforementioned bee enzymes produce hydrogen peroxide, which can stop anything that tries to grow in the honey dead in its tracks. In fact, some folks use honey on wounds because of its natural antibacterial properties.
Those three factors make honey a low-moisture, high-acidity environment, preventing decomposing agents such as fungi and bacteria from surviving in it.
However, if the honey is stored in a container that's not airtight and left in a humid environment (or exposed to water), its hygroscopic property will make it absorb moisture, increasing the possibility that it will spoil. Also, it can get contaminated by spores of the neurotoxin 𝘊𝘭𝘰𝘴𝘵𝘳𝘪𝘥𝘪𝘶𝘮 𝘣𝘰𝘵𝘶𝘭𝘪𝘯𝘶𝘮, making it dangerous for infants under the age of one.
Still, as long as you seal it well and store it in a dry place, you can confidently make a sticky snack for your great-great-great-great-great-great-great-great-great-great-great-great-great grandkids (or some intrepid archaeologist from the year 3000 with a sense of adventure inversely proportional to their sense of self-preservation) to enjoy. Pretty sweet, isn't it?