A mathematical model describing how honeybee swarms reach consensus on nest sites through recruitment and inhibition.