Since encephalitis is caused by a variety of infections, there is no single vaccine for it. Nor is there any commercially available vaccine for many of the initiating pathogens. The U.S. CDC recommends taking preventive measures against mosquito and tick bites.