Aging of the immune system involves functional changes in individual cell populations, in hematopoietic tissues and at the systemic level. They are mediated by factors produced by circulating cells, niche cells, and at the systemic level. Age-related alterations in the microenvironment of the bone marrow and thymus cause a decrease in the production of naive immune cells and functional immunodeficiencies. Another result of aging and reduced tissue immune surveillance is the accumulation of senescent cells. Some viral infections deplete adaptive immune cells, increasing the risk of autoimmune and immunodeficiency conditions, leading to a general degradation in the specificity and effectiveness of the immune system in old age.