All molecules have antigens (proteins) on their surface.
If antigens are foreign an immune response will be triggered.
Lymphocytes produce antibodies. If the antibodies have a complementary shape to antigens on the pathogen , they will bind and kill the pathogen.