The social intelligence hypothesis posits that having to navigate a complex communal life, which involves challenges such as keeping track of who is a friend and who is an enemy, has pushed group-living animals to evolve the mental machinery required to solve and remember mental tasks such as the box puzzle.