Tonsillitis is inflammation of the tonsils, pharyngitis is caused by inflammation of the pharynx, which is in the back of the throat, between the tonsils and the voicebox (larynx). Tonsilitis and pharyngitis can be caused by a bacterial or viral infection.