Mimicking the infection has proven to be highly effective in preventing diseases. For instance, vaccines for measles, mumps, rubella, polio, and smallpox have dramatically reduced the incidence of these diseases worldwide. The immune memory created by vaccines can last for years, sometimes even a lifetime.