How does our brain integrate space geometry and social factors to perceive a territory? Our brain has a core system, centered in the hippocampus, which is composed of spatially-selective neurons which help us to process the geometry of space (distances, landmarks, borders). Yet when it comes to navigating our social surroundings, our brain also tends to map space into socially meaningful territories. We use wireless technology in freely behaving marmosets and develop mechanistic data-driven models that aim to map behavioral computations to onto neural activity.