The production of immunity in an individual by artificial means. Active immunization (vaccination) involves the introduction, either orally or by injection (inoculation), of specially treated bacteria, viruses, or their toxins to stimulate the production of antibodies (see vaccine). Passive immunization is induced by the injection of preformed antibodies.