A targeted defense mechanism involving lymphocytes (T and B cells) that recognizes and memorizes specific antigens. It is composed of two branches: