A viral infection is caused by a virus and is often the cause of minor illness, such as a cold or the stomach flu. A viral infection usually causes many different symptoms that often come on quickly (over hours to a day or two) without prior illness.
Viral infections that cause minor illnesses are usually not serious. And they go away without medical treatment. Home treatment can relieve the symptoms of colds and stomach flu. And home treatment can prevent problems, such as dehydration, too. Antibiotics are not used to treat a viral illness and will not help cure a viral illness.
Some immunizations can prevent viral infections, including influenza (flu), chickenpox, and measles. Practicing good hygiene and avoiding close contact with sick people can also help prevent infection.