The specific actions taken to prevent the occurrence of infectious diseases, such as vaccination and hygiene.