Spleen and thymus Its job is to process old and damaged blood cells and microorganisms. Before birth, the spleen also helps producing blood cells. In early childhood, it plays a major role in building and maintaining the immune system. The thymus is a gland located behind the breastbone (sternum).