Abstract. 1. Numerous cladistic analyses have converged: termites are a monophyletic clade embedded within the paraphyletic cockroaches, and sister group to the biparental, wood-feeding cockroach Cryptocercus. The latter is, therefore, an appropriate model for testing assumptions regarding early termite evolution.2. The ground plan of the termite ancestor is reviewed based on shared characters of ecology, life history, and behaviour in Cryptocercus and incipient termite colonies, and includes two levels of dependence: a reliance of all individuals on gut microbiota, and dependence of early instars on parental care. Both these conditions co-evolved with parent-to-offspring proctodeal trophallaxis.3. The termite ancestor lived in a single log serving as food and nest. This 'one-piece' nesting ecology prioritises nitrogen conservation and strongly influences interacting social, nutritional, and microbial environments. Each of these environments individually and in combination profoundly affect cockroach development.4. Proctodeal trophallaxis integrates the social, nutritional, and microbial environments. A change in trophallactic behaviour, from parental to alloparental, can, therefore, shift developmental trajectories, ultimately adding a third level of dependence. The death of gut protists during the host molting period and consequent interdependence of family members shifted the hierarchical level at which selection acted; fixation of eusociality quickly followed.5. The basic nesting ecology did not change when termites evolved eusociality, the change occurred in the allocation and use of existing resources within the social group, driven by nitrogen scarcity, mediated by trophallaxis, and made possible by a strongly lineage-specific set of life history characteristics.