When an antigen enters the body, it is recognized by immune cells called lymphocytes. These cells then produce antibodies that bind to the antigen, marking it for destruction by other immune cells. This process helps to eliminate the foreign substance and build memory cells for future protection.