The building of structures by animals to shelter themselves or their young, such as nests or burrows.