An aerial , the tree swallow forages both alone and in groups, eating mostly insects, in addition to molluscs, spiders, and fruit. The nestlings, like the adult, primarily eat insects, fed to it by both sexes. This swallow is vulnerable to parasites, but, when on nestlings, these do little damage. The effect of disease can become stronger as a tree swallow gets older, as some parts of the immune system decline with age. Acquired T cell-mediated immunity, for example, decreases with age, whereas both innate and acquired humoral immunity do not. Because of its large range and stable population, the tree swallow is considered to be least concern by the International Union for Conservation of Nature. In the US, it is protected by the Migratory Bird Treaty Act of 1918, and in Canada by the Migratory Birds Convention Act. This swallow is negatively affected by human activities, such as the clearing of forests; acidified lakes can force a breeding tree swallow to go long distances to find calcium-rich food items to feed to its chicks.