KHK and diabetes mellitus: This study demonstrates the dominant role of enhanced endogenous fructose metabolism in microglia in the process of diabetes-associated cognitive dysfunction and suggests KHK as a potential therapeutic target for this condition.