Honey crystallizes when its naturally-occurring glucose ceases to be dissolved and solidifies instead. This generally happens when the glucose content of honey separates itself from the water content simply because there isn’t enough water present to keep it in its dissolved form. It’s perfectly normal, and your honey won’t be spoilt.