Type I hypersensitivity, also known as allergy or immediate hypersensitivity, involves an exaggerated immune response to normally harmless allergens. The response involves IgE antibodies, mast cells, and basophils. Upon re-exposure, mast cells and basophils degranulate, releasing chemical mediators that cause symptoms. Type II hypersensitivity involves antibody-mediated cytotoxic reactions against foreign cells. Type III hypersensitivity involves immune complex-mediated hypersensitivity and can cause local or systemic inflammatory responses. Immunodeficiency diseases occur when components of the immune system are absent, including primary and secondary deficiencies. Cancer arises due to malfunctions in immune surveillance that allow abnormal cells to proliferate unchecked.