Encephalitis or inflammation of the brain may be caused by a viral infection.