Physicist Denis Bartolo and his colleagues have studied the spontaneous motion of large crowds in a confined space.By filming and analyzing the San Fermín festival, Bartolo aims to prevent stampedes in future events.It may be possible to predict crowd movements once the density of people crosses a critical threshold.Studying crowds is challenging due to safety concerns, but predictable events like San Fermín offer valuable research opportunities.