ERC grantee Marta Moita and her team use cutting-edge experimental procedures to investigate how rats and flies learn to appropriately respond to danger from other individuals. The results of her study may teach us a lot about our own brains, and shed light on diseases that impair social behaviour.