Tonsillitis is a general term that refers to an infection of the tonsils. This infection usually occurs due to S. pyogenes, but other bacteria or a virus can also cause it. When your tonsils try to fight the infection, they swell and can produce white pus.