A viral infection is a type of infection caused by a virus, which can affect different parts of the body and cause disease. Viral infections can be contagious and can be transmitted from person to person through the air, by direct contact, or through vectors such as insects.