Complex nests are built by many ants, but other species are nomadic and do not build permanent structures. Ants may form subterranean nests or build them on trees. These nests can be found in the ground, under stones or logs, inside logs, hollow stems or even acorns. The materials used for construction include soil and plant matter, and ants carefully select their nest sites; Temnothorax albipennis will avoid sites with dead ants, as these may indicate the presence of pests or disease. They are quick to abandon established nests at the first sign of threats.