Locomotion emerges from effective interactions of an individual with its environment. Principles of biological terrestrial locomotion have been discovered on unconfined vertical and horizontal substrates. However, a diversity of organisms construct, inhabit, and move within confined spaces. Such animals are faced with locomotor challenges including limited limb range of motion, crowding, and visual sensory deprivation. Little is known about how these organisms accomplish their locomotor tasks, and such environments challenge human-made devices. To gain insight into how animals move within confined spaces, we study the locomotion of the fire ant Solenopsis invicta, which constructs subterranean tunnel networks (nests). Laboratory experiments reveal that ants construct tunnels with diameter, D, comparable to body length, L = 3.5 ± 0.5 mm. Ants can move rapidly (> 9 bodylengths per s) within these environments; their tunnels allow for effective limb, body, and antennae interaction with walls, which facilitate rapid slip-recovery during ascending and descending climbs. To examine the limits of slip-recovery in artificial tunnels, we perform perturbations consisting of rapid downward accelerations of the tunnels, which induce falls. Below a critical tunnel diameter, D s = 1.31 ± 0.02 L, falls are always arrested through rapid interaction of appendages and antennae with tunnel walls to jam the falls. D s is comparable to the size of incipient nest tunnels (D = 1.06 ± 0.23 L), supporting our hypothesis that fire ants construct environments that simplify their control task when moving through the nest, likely without need for rapid nervous system intervention.animal locomotion | extended phenotype | locomotion control | social insect | stability T errestrial animals and increasingly robots must move in diverse and complex environments, including running across flat landscapes (1), swimming in sand (2), climbing rough or smooth vertical surfaces (3), and squirming through cracks (4). The bulk of discoveries of locomotor behaviors and control strategies have been made by challenging animals in the laboratory in simplified environments that are typically featureless, flat, and unconfined (5). Such simplifications have allowed discovery of general principles in locomotor modes of walking, running, and climbing (6-9). Recent studies have generated appreciation for the importance of mechanical interactions with the environment, and through biological experiment (10) and robot modeling (11,12) have demonstrated that stable and robust movement can emerge as a result of appropriately tuned dynamics of limb-ground interaction (13,14). For example, rapid perturbations to locomotion may be corrected by so-called "preflexes" (15) in which mechanical design of the limb and appropriate kinematics enable rapid recovery from perturbation (6,8,10). However, typical substrates that legged locomotors contend with differ in orientation, can deform in response to foot/body contact (1, 11), and are rough on multiple size scales (16, 17); litt...