The immune system is typically divided into two categories--innate and adaptive immunity. Innate immunity refers to nonspecific defense mechanisms that come into play immediately or within hours of an antigen's appearance in the body. These mechanisms include physical barriers and chemicals that attack foreign cells. Adaptive immunity refers to antigen-specific immune responses and includes a memory that makes future responses more efficient. It is more complex and involves antigen processing and recognition by immune cells.