In the context of cancer, phagocytosis plays a dual role. On one hand, it can contribute to the elimination of cancer cells by immune cells such as macrophages and neutrophils. On the other hand, certain cancer cells can evade phagocytosis, allowing them to proliferate and metastasize.