What is thought to be the function of the thymus gland?

It is involved in the formation of T-cells, which are one type of infection fighting white cell.