What Are Tonsils Purpose, Tonsillitis is an inflammation of the tonsils, which is caused by a viral or bacterial infection.