Ants are capable of complex problem-solving strategies that could be widely applied as optimization techniques. An individual ant searching for food walks in random ways. Yet the collective foraging behavior of ants goes well beyond that, a mathematical study reveals: The animal movements at a certain point change from chaos to order. This happens in a self-organized way. Understanding the ants could help analyze similar phenomena -- for instance how humans roam the Internet.