A conditional knockout of SCAP in the mouse brain identifies impaired cholesterol synthesis as a potential link between diabetes and altered brain function. Here, SCAP is linked to diabetes mellitus.