An outstanding open problem is whether collective social phenomena occurring over short timescales can systematically reduce cultural heterogeneity in the long run, and whether offline and online human interactions contribute differently to the process. Theoretical models suggest that short-term collective behavior and longterm cultural diversity are mutually excluding, since they require very different levels of social influence. The latter jointly depends on two factors: the topology of the underlying social network and the overlap between individuals in multidimensional cultural space. However, while the empirical properties of social networks are intensively studied, little is known about the large-scale organization of real societies in cultural space, so that random input specifications are necessarily used in models. Here we use a large dataset to perform a high-dimensional analysis of the scientific beliefs of thousands of Europeans. We find that interopinion correlations determine a nontrivial ultrametric hierarchy of individuals in cultural space. When empirical data are used as inputs in models, ultrametricity has strong and counterintuitive effects. On short timescales, it facilitates a symmetry-breaking phase transition triggering coordinated social behavior. On long timescales, it suppresses cultural convergence by restricting it within disjoint groups. Moreover, ultrametricity implies that these results are surprisingly robust to modifications of the dynamical rules considered. Thus the empirical distribution of individuals in cultural space appears to systematically optimize the coexistence of short-term collective behavior and long-term cultural diversity, which can be realized simultaneously for the same moderate level of mutual influence in a diverse range of online and offline settings.collective social phenomena | homophily | social influence | sociophysics | ultrametricity H ow a society spontaneously organizes macroscopically from the microscopic, uncoordinated behavior of individuals is one of the most studied and exciting problems of modern science (1-3). Collective social phenomena are systematically observed in several aspects of everyday life, including the onset of large-scale popularity and fashion [both offline (4) and online (5-7)], the existence of large speculative bubbles and herding behavior in financial markets (8-10), the spontaneous emergence of order in traffic and crowd dynamics (11), the properties of voting dynamics (4, 12), the structure of countrywide communication networks (3,13,14), individual specialization and the spreading of cooperation, habits, fear, gossip, rumors, etc. (2,11,15). When collective phenomena occur, large parts of a population turn out to be globally correlated or synchronized as a result of the combination of many local interactions, even if no centralized mechanism takes place. Importantly, the collective outcome is different from a mere superposition of noninteracting individual behaviors, and contrasts the "representative agent" scenario ofte...