Recent studies suggest a close interaction between sensory and motor processes across the neocortex. In this Perspective, Rao proposes active predictive coding as a sensory–motor theory that explains the structure of the neocortex as well as some of its diverse computational capabilities.