Tonsillitis is an acute swelling and irritation (inflammation) of the tonsils. Tonsillitis is caused by a bacterial infection or a viral infection. The most common bacterial infection that causes tonsillitis is strep throat, caused by a group A streptococcal infection of the tonsils and throat.