Like other organs of the lymphatic system, the tonsils act as part of the immune system to help protect against infection. In particular, they are believed to be involved in helping fight off pharyngeal and upper respiratory tract infections.