The tree swallow nests either in isolated pairs or loose groups, in both natural and artificial cavities.