How do viral infections go away?

So my biology teacher says that unlike antibiotics which kill bacteria, there is no medicine that can treat and kill viral infections and that the medicines we take simply help treat the symptoms. My question is that when we do get a viral infection, how does our immune system kill it and get rid of it? And how... show more So my biology teacher says that unlike antibiotics which kill bacteria, there is no medicine that can treat and kill viral infections and that the medicines we take simply help treat the symptoms.
My question is that when we do get a viral infection, how does our immune system kill it and get rid of it? And how does it "remember" the virus so it can recognize it the next time we get the infection?
Thanks for the help!
5 answers 5