Tonsillitis is the inflammation of the tonsils, which are two small masses of tissue located at the back of the throat, one on each side. The tonsils are part of the immune system and help protect the body from infections, particularly those entering through the mouth and nose. Tonsillitis can be caused by viral or bacterial infections and is more common in children, although it can affect individuals of any age.