Pathogens are first recognised as a foreign body by the antigens on it's membrane, as they are non-self antigens. The body then triggers a response by attaching antibodies to these antigens. Phagocytes can detect antibodies with receptors on their surface, and they bind to the antibodies.
The phagocyte will then proceed to turn it's membrane inside out to engulf the foreign body and also the antibodies - which are then trapped inside a phagosome (which is a type of vacuole). Lysosomes containing enzymes fuse to the phagosome and dissolve the material inside. The products are absorbed into the cytoplasm.