Tim Behrens studies how our brains learn and represent knowledge about the world in service of flexible behaviour. His work aims to explain complex human behaviour but is grounded in comparisons with animal models and formal mathematical theory. A major recent theme in the group has been neural computations in the frontal-hippocampal circuitry. Here, the team have shown that cellular computations renowned for their roles in spatial processing, such as grid cells and replay can also represent and manipulate non-spatial knowledge. Using these results, the lab has built models that help to reconcile accounts of spatial and non-spatial processing.