SUMMARYLeaf-cutting ant queens excavate a founding nest consisting of a vertical tunnel and a final horizontal chamber. Nest foundation is very time consuming, and colony success depends on the excavated depth. Although shallow nests may be energetically cheaper to dig, queens may be more exposed to the changing environment. Deeper chambers, in contrast, may be climatically more stable, but are more expensive to dig. We investigated the mechanisms underlying the control of nest depth in queens of the leaf-cutting ant Atta vollenweideri. We focused on the use of internal information for the control of nest depth, and therefore maintained the soil and environmental conditions invariant during the different laboratory experiments. We compared the tunnel lengths excavated by queens that were able to complete their nests earlier, faster or slower than under standard conditions. An earlier and faster nest completion was obtained by offering queens either pre-excavated tunnels of different lengths, soils at different temperatures, or soft sandy soils. A slower nest excavation was induced by offering queens harder dry soils, and by delaying the start of digging several days after the nuptial flight. Results indicate that the determination of nest depth was a regulated process involving the use of internal references: queens excavated their tunnels either until a particular depth was reached or for some predetermined length of time. Queens appear to monitor their movements while walking up und down the tunnel, and to compare this sensory information with a motor command that represents a preset tunnel length to be excavated before switching to chamber digging. In addition to this form of idiothetic control, results indicate that the elapsed digging time also feeds back onto the control system. It is argued that the determination of nest depth, i.e. the transition from tunnel to chamber digging, is initiated either after a preset tunnel length is reached, or as soon as a maximal time interval has elapsed, irrespective of the excavated tunnel length. A control system using both idiothetic and temporal information, as demonstrated in the present study, allows queens to flexibly react to different soil conditions, and therefore avoid excessive time and energy investments. Possible mechanisms underlying the control of chamber size are also discussed.