Herein, we present a protocol for the 3D culture of rat brain-derived glia cells, including astrocytes, microglia, and oligodendrocytes. We demonstrate primary cell culture, methacrylated hyaluronic acid (HAMA) hydrogel synthesis, HAMAphoto-polymerization and cell encapsulation, and sample processing for confocal and scanning electron microscopic imaging.