Encephalitis is irritation and swelling (inflammation) of the brain, most often due to infections. Encephalitis is a rare condition. It occurs more often in the first year of life and decreases with age. The very young and older adults are more likely to have a severe case. Encephalitis caused by the herpes simplex virus is the leading cause of more severe cases in all ages, including newborns.