Every photograph of this is taken from directly above, and it is the only angle that makes the shape readable: a black ring of ants, a metre or two across, every ant touching the one in front with its antennae, and a circle of bare ground in the middle that nothing crosses. The ring turns. Hours pass. It keeps turning.

The shape is the whole story
The animals in the photographs are army ants, the tropical kind that raid in columns rather than living in a fixed nest. A column leaves the bivouac, fans out, takes prey, and comes back along its own scent. Occasionally a group gets separated from the main raid and loses the trail it was following. What forms next is the thing in the picture.
The first written account is from 1921, when the naturalist William Beebe watched one in Guyana and paced it out: a circumference of about 370 metres, each ant taking around two and a half hours to complete a lap. It ran for two days. It ended when rain washed the surface clean and a few ants at the edge struck a new line.
What the ant in front leaves behind
Army ant workers are, for practical purposes, blind. They have eyes, and the eyes resolve very little. On a forest floor of leaf litter and root tangles, vision would not help much anyway. What they use instead is chemistry laid on the ground: a trail pheromone secreted from the tip of the abdomen, deposited continuously as an ant walks.
The rule each ant follows is simple. Sample the ground ahead, walk toward the strongest concentration, keep depositing your own. Nothing in that rule mentions a destination. The destination is an emergent property of many ants each reinforcing a path that others then prefer.
How a loop closes
A trail works because it is a line with two ends. Remove the ends and the rule has nothing to check itself against.
Picture a column that has been diverted. The leader swings wide, and because the ground is smooth and there are no landmarks, it curves back far enough to meet the rear of its own group. The leader now samples fresh pheromone directly in front of it, laid down minutes ago by ants that are still walking. It follows. The ant behind follows the leader. Within a few minutes the line has no front and no back, only a direction of travel that returns to where it started.
From then on the loop strengthens itself. Every ant that completes a lap adds a fresh layer of pheromone, and the freshest deposit is always the segment just ahead of the ant reading it. The loop becomes the strongest trail on the floor, which means it becomes the trail most worth following, which means it becomes stronger. This is positive feedback with no brake, and the ants are not making a mistake at any individual step. Each decision is the correct one given the information available at the tip of one pair of antennae.
The antennae, which are the actual instrument
An ant does not smell the way you do. Airborne odour is a minor channel for it. Its chemical sense is a contact sense, which is why ants tap the ground and each other constantly, and why the antennae are jointed — they are being used as a hand that reads chemistry.
The reading is done by sensilla: small hair-shaped, peg-shaped or pit-shaped structures set into the surface of the antenna, each with pores through which molecules reach a cluster of sensory neurons inside. A worker's antenna carries several thousand of them, in several types, some tuned to trail pheromone and some to alarm compounds, food odours, or the cuticular wax of a nestmate.
Under a microscope the antenna is unexpectedly generous. A whole mount shows the segments, the elbow, and the field of sensilla as a fringe of fine hairs and short pegs; a stained section shows the pits and the nerve bundles running down the centre. You can count sensilla along a segment and compare a worker with a queen, or a forager with a soldier. The instrument that built the ring is on that slide, in hundreds of copies.
What stops it, and what does not
Nothing inside the loop stops it. The ants are not waiting for a signal that never comes; they are receiving a strong, consistent, entirely honest signal that says the trail ahead is the best trail available. What ends a mill is an outside event: rain, a fallen branch, a predator, or a handful of ants at the outer edge drifting onto untouched ground and starting a competing line.
In the laboratory the phenomenon has been produced on smooth surfaces and reproduced in simulations, which is a useful reminder that it is not a pathology of tropical forests. It is what the algorithm does at its boundary.
In a lesson
This is one of the cleanest examples of a system in which every component behaves correctly and the whole fails, and it is worth teaching without the moral. The useful questions are mechanical. How long does the pheromone last? How steep does the concentration gradient have to be before an ant can tell one direction from another? What fraction of the group has to leave the loop before the rest can be pulled out?
A class can model this on paper in twenty minutes: a grid, a rule that says move toward the highest number, a rule that says add one to your square as you leave it. The loop appears without being programmed. Then the same model with the pheromone decaying each round shows how fast the ring dissolves. What students take away is not that ants are stupid, but that a local rule and a global outcome are different objects, and you cannot read one off the other.
Contact chemosensation, antennal sensilla and the tissue that carries them are things a class can examine directly, and Wwai pairs scanned animal histology with an AI lab partner so a group can count structures on a slide and then test what those structures can and cannot explain.