Essentially, your immune system fights the infection caused by the viruses or bacteria of tonsillitis. But if it is weakened, recovery may take longer. Therefore, maintaining a healthy immune system is crucial to prevent and combat tonsillitis.