Tonsils (or palatine tonsils) are masses of lymphatic tissue inside the mouth at the back of the throat. The tonsils are part of a lymphatic tissue ring (the so-called Waldeyer ring), which is located in the oral cavity and the pharynx.
Being part of the immune system, this ring serves as our first line of defense against infections by acting as a biological filter station.