Active immunity can be natural or artificially developed. Naturally acquired - a person is exposed to a live pathogen, develops an immune response - and then creates memory T and B cells. Artificially acquired - a person is given a vaccine (which contains the antigen). This stimulates the same response, without the symptoms of the disease.