The process by which solid materials, such as bacteria, are taken into a cell by endocytosis. A bacterium is taken into a cell by endocytosis, forming a phagocytic vacuole. Lysosomes fuse with the phagocytic vacuole to form a phagosome. The lysosome's enzymes digest the bacterium