Microglia, the resident immune cells of the central nervous system (CNS), are primarily derived from the embryonic yolk sac and make their way to the CNS during early development. They play key physiological and immunological roles across the life span, throughout health, injury, and disease. Recent transcriptomic studies have identified gene transcript signatures expressed by microglia that may provide the foundation for unprecedented insights into their functions. Microglial gene expression signatures can help distinguish them from macrophage cell types to a reasonable degree of certainty, depending on the context. Microglial expression patterns further suggest a heterogeneous population comprised of many states that vary according to the spatiotemporal context. Microglial diversity is most pronounced during development, when extensive CNS remodeling takes place, and following disease or injury. A next step of importance for the field will be to identify the functional roles performed by these various microglial states, with the perspective of targeting them therapeutically. Expected final online publication date for the Annual Review of Genetics, Volume 57 is November 2023. Please see http://www.annualreviews.org/page/journal/pubdates for revised estimates.