The main role of microglia, phagocytosis, involves the engulfing of various materials. Engulfed materials generally consist of cellular debris, lipids, and apoptotic cells in the non-inflamed state, and invading virus, bacteria, or other foreign materials in the inflamed state.