See Varicella.
When you are protected against a disease because your immune system is making antibodies to fight that disease. People get active immunity one of two ways, either by getting the disease or through vaccination. Active immunity is sometimes permanent, meaning a person is protected from the disease for the rest of their life.