Primates evolved large brains and intelligence due to both ecological and social pressures. Ecological challenges like finding patchy fruit resources and extracting hidden foods likely contributed to brain growth. However, navigating complex social groups and tracking relationships between individuals and allies may have been an even stronger factor. While no single hypothesis explains primate intelligence fully, both ecological problem-solving and social cognition were likely important in driving the evolution of primate brain size.