Scientists have discovered that ants follow simple rules to perform complex tasks, and studying ant construction could have applications in swarm robotics and self-healing materials.