This method demonstrates how to visualize pathogen invasion into insect cells with three-dimensional (3D) models. Hemocytes from Drosophila larvae were infected with viral or bacterial pathogens, either ex vivo or in vivo. Infected hemocytes were then fixed and stained for imaging with a confocal microscope and subsequent 3D cellular reconstruction.