People and other animals can search for information inside their heads. Where does this ability come from, and what does it enable cognitive systems to do? In this article, we address the behavioral and cognitive similarities between search in external environments and internal environments (e.g., memory). These require both maplike representations and the means to navigate them, and the latter involves modulation between exploitation and exploration analogous to a foraging process called area-restricted search. These findings have implications for understanding a number of cognitive abilities commonly considered to be hallmarks of the human species, such as well-developed executive control and goal-directed cognition, autonoetic consciousness (i.e., self-awareness), deliberation, and free will. Moreover, this research extends our conception of what organisms may share these abilities and how they evolved.