The main function of the thymus is to develop immature T-cells into immunocompetent T-cells which play an important role in the body immune system.